The
Java Persistence API (JPA) is a Java application programming interface (API) specification that describes the management of relational data in applications using Java Platform SE/EE.
JPA 2.0
The Java Persistence API (JPA) 2.0 was approved as final on 10 December 2009 in the Java Community Process as
JSR 317. The focus of JPA 2.0 was to address features that were present in some of the popular ORM vendors, but could not gain consensus approval for JPA 1.0.
List of main features:- Expanded object-relational mapping functionality:
- support for collections of embedded objects, linked in the ORM with a many-to-one relationship;
- ordered lists;
- combinations of access types.
- A criteria query API;
- Standardization of SQL Hints;
- Standardization of additional metadata to support DDL generation;
- Support for validation;
- Shared object cache support.