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

What does JpaRepository<Course, Long mean?

What does JpaRepository<Course, Long> mean?

  1. A.A repository for Course entities whose id type is Long
  2. B.A table with two columns, Course and Long
  3. C.A repository that stores only Long values
  4. D.A cache of 64-bit numbers
Answer & explanation

Correct answer: A repository for Course entities whose id type is Long

The second type parameter is the primary key type.

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 →