🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: JPA and Hibernate: all 10 questions

Quiz: JPA and Hibernate · Question 6 of 10

What happens at startup if a repository has the method findByTitel(String t) (a typo)?

What happens at startup if a repository has the method findByTitel(String t) (a typo)?

  1. A.It compiles and always returns an empty list
  2. B.It searches every column
  3. C.Startup fails with an error like "No property 'titel' found"
  4. D.Spring corrects the spelling
Answer & explanation

Correct answer: Startup fails with an error like "No property 'titel' found"

Derived queries are checked against the entity's fields when the app starts.

Can you get the rest right without peeking?

Take the timed Quiz: JPA and Hibernate quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →