All quizzes
Free quiz · 20 questions in the bank

JPA quiz

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

Question 1/12Score 0

What is a general architectural benefit of JPA being a specification with multiple possible implementations (Hibernate, EclipseLink, OpenJPA), rather than being tied to one single concrete technology?

In this round
  1. What is a general architectural benefit of JPA being a specification with multiple possible implementations (Hibernate, EclipseLink, OpenJPA), rather than being tied to one single concrete technology?
  2. Why is JPA commonly used together with the Spring Framework, specifically via Spring Data JPA?
  3. What is the JPA `@Transactional` annotation (or the broader transaction management it represents) used for?
  4. What is "optimistic locking" in JPA, typically implemented via a `@Version` annotated field?
  5. What does the JPA Criteria API provide as an alternative to writing JPQL query strings directly?
  6. What does the `@Id` annotation designate on a JPA entity field?
  7. What is a "persistence context" in JPA, and how does it relate to entity instances managed by an `EntityManager`?
  8. What does JPA's support for entity relationships (`@OneToMany`, `@ManyToOne`, `@ManyToMany`) allow developers to express?
  9. What does JPA's "dirty checking" mechanism do?
  10. How can a JPQL query use `JOIN FETCH` to help address the N+1 query problem for a specific query?
  11. What is a JPA "Entity," typically a class annotated with `@Entity`?
  12. What is JPA (Java Persistence API)?
Gaps to close?
Read the curated JPA notes — core concepts, patterns, interview prep.
JPA notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka