All quizzes
Free quiz · 24 questions in the bank

Hibernate quiz

Test your Hibernate knowledge with a free interactive quiz — 24 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What does `@OneToMany` describe?

In this round
  1. What does `@OneToMany` describe?
  2. What does `@Id` mark on an entity field?
  3. What is Hibernate?
  4. What is the difference between `FetchType.LAZY` and `FetchType.EAGER`?
  5. What is a JPA "repository" (e.g. Spring Data JPA's `JpaRepository`)?
  6. What is `hibernate.hbm2ddl.auto` (or Spring Boot's `spring.jpa.hibernate.ddl-auto`) used for?
  7. What is a Hibernate/JPA "criteria query"?
  8. What is a `Session`/`EntityManager` used for?
  9. What does the Hibernate first-level cache (the persistence context) do?
  10. What is a `SessionFactory` (Hibernate-specific) or `EntityManagerFactory` (JPA-standard)?
  11. What is HQL (Hibernate Query Language)?
  12. What is `@Transactional` (Spring) or a JPA `EntityTransaction` used for?
Gaps to close?
Read the curated Hibernate notes — core concepts, patterns, interview prep.
Hibernate notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka