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/5Score 0

What does `@OneToMany` describe?

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

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web