O'Reilly logo

Spring Persistence: A Running Start by Solomon Duskis, Paul Tepper Fisher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required