Chapter 4: Integrating JPA with Spring
The Java Persistence API (JPA) was the brainchild of the EJB 3.0 standardization committee. They produced the JPA specification for both EJB 3.0 entity bean definitions and for the ORM world at large. JPA is supported by various ORMs, including Hibernate, popular Java Data Object (JDO) implementations and, obviously, EJB 3.0 Entity Beans.
JPA has a set of annotations that can be applied to domain classes to map these objects to database tables and member variables to columns. JPA also features an SQL-like language called JPAQL that can query the database with an object-oriented flavor. To access your database-mapped domain model or to execute JPAQL queries, you use the EntityManager.EntityManager
is an ...
Get Spring Persistence: A Running Start now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.