🎙 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 9 of 10

What does nativeQuery = true in @Query mean?

What does nativeQuery = true in @Query mean?

  1. A.The query uses entity and field names
  2. B.The query is plain SQL for your database, using table and column names
  3. C.The query runs on the Java side
  4. 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 →