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
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?
Why is JPA commonly used together with the Spring Framework, specifically via Spring Data JPA?
What is the JPA `@Transactional` annotation (or the broader transaction management it represents) used for?
What is "optimistic locking" in JPA, typically implemented via a `@Version` annotated field?
What does the JPA Criteria API provide as an alternative to writing JPQL query strings directly?
What does the `@Id` annotation designate on a JPA entity field?
What is a "persistence context" in JPA, and how does it relate to entity instances managed by an `EntityManager`?
What does JPA's support for entity relationships (`@OneToMany`, `@ManyToOne`, `@ManyToMany`) allow developers to express?
What does JPA's "dirty checking" mechanism do?
How can a JPQL query use `JOIN FETCH` to help address the N+1 query problem for a specific query?
What is a JPA "Entity," typically a class annotated with `@Entity`?