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 is the difference between `FetchType.LAZY` and `FetchType.EAGER`?

Questions in this quiz
  1. What is the difference between `FetchType.LAZY` and `FetchType.EAGER`?
  2. What is `hibernate.hbm2ddl.auto` (or Spring Boot's `spring.jpa.hibernate.ddl-auto`) used for?
  3. What is Hibernate?
  4. What is a `SessionFactory` (Hibernate-specific) or `EntityManagerFactory` (JPA-standard)?
  5. What is Hibernate's "dirty checking"?
  6. What does `@OneToMany` describe?
  7. What does `@Entity` mark?
  8. How do you save a new entity to the database?
  9. What is HQL (Hibernate Query Language)?
  10. What is JPA?
  11. What is `@Transactional` (Spring) or a JPA `EntityTransaction` used for?
  12. What does `session.get()`/`entityManager.find()` do?
Gaps to close?
Read the curated Hibernate notes — core concepts, patterns, interview prep.
Hibernate notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web