← 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)?
- A.It compiles and always returns an empty list
- B.It searches every column
- C.Startup fails with an error like "No property 'titel' found"
- 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 →