Chapter 3. Working with Java Persistence and Entities
In this chapter, we will develop the following recipes:
- Configuring the Java Persistence API (JPA) in Spring
- Defining useful EJB3 entities and relationships
- Making use of the JPA and Spring Data JPA
Introduction
The Java Persistence API (JPA) is a specification that has been produced in different releases from 2006 (JPA 1.0) to 2013 (JPA 2.1) by a group of various experts. Historically, it is one of the three pieces of the EJB 3.0 specification, which has come along with JEE5.
More than an upgrade of Enterprise JavaBeans (EJB), JPA was pretty much a complete redesign. At the time, the leading providers of Object Relational Mapping solution (such as Hibernate) and of J2EE application servers (such ...
Get Spring MVC: Designing Real-World Web Applications 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.