Skills101
← All practice quizzes

Quiz: JPA and Hibernate

5 questionsNo time limitPass: 60%+10 XP on first pass

Map Java classes to tables with JPA annotations, get CRUD for free with JpaRepository, write queries just by naming methods, use JPQL with @Query, and understand what Hibernate does for you.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does JpaRepository<Course, Long> mean?

  2. Question 2

    What query does findByFeeLessThanEqual(int max) run?

  3. Question 3

    In JPQL, what do you write after FROM?

  4. Question 4

    Why does CourseService.update not call repository.save()?

  5. Question 5

    Which annotation marks the primary key field?