Refer to "4.1.1 What is JPA?" for an outline of JPA.
The specification for JPA in Java EE 6 is JPA 2.0. The following features have been added in JPA 2.0:
Mapping of object collections that can be embedded
Annotations can be used for the mapping of object collections that can be embedded.
Extension of Java Persistence Query Language (JPQL)
New operators such as CASE expression can be used.
Criteria API
API controlled by Java objects can be used for query control.
Point
Refer to the following specifications for details on JPA 2.0:
JSR 317: Java(TM) Persistence 2.0
Refer to "4.2.2 Development Flow" and "4.2.3 Development Procedures" for information on the flow and procedures for developing JPA. Refer to "9.6.1 Preparing to Create Applications" for information on preparations for creating annotations.
Note
To create connection profiles in the Java EE 6 workbench, in the [New] wizard, select [Connection Profile] > [Connection Profile].
When "Development Procedures" in "Chapter 4 Developing Applications that use Java Persistence API (JPA)" is performed using the Java EE 6 workbench, there are the following differences:
In "2-1) Creating the JPA Project", specify "Generic 2.0" under [Platform] in the [JPA Project] wizard and "Disable Library Configuration" for the JPA implementation.
In "6-2) Setting the Build Path", select the EAR project, then select [Properties] from the context menu and check the [Deployment Assembly].
To create the JDBC Connection Pool, use the create-jdbc-connection-pool command. To create the JDBC resource, use the create-jdbc-resource command. Refer to "Setting the Database Environment" in the "Interstage Application Server Java EE Operator's Guide (Java EE 6 Edition)" for information on Interstage Application Server JDBC settings such as the JDBC driver classpath settings.