← Quiz: JPA and Hibernate: all 10 questions
Quiz: JPA and Hibernate · Question 9 of 10
What does nativeQuery = true in @Query mean?
What does nativeQuery = true in @Query mean?
- A.The query uses entity and field names
- B.The query is plain SQL for your database, using table and column names
- C.The query runs on the Java side
- D.The query is cached
Answer & explanation
Correct answer: The query is plain SQL for your database, using table and column names
JPQL is the default; native queries are written in the database's own SQL.
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 →