+

Search Tips   |   Advanced Search

Identify and modify the JPA specification level

Newly created profiles default to the Java Persistence API (JPA) 2.1 specification. We can run AdminTask wsadmin commands to list JPA specifications supported by the product and to change the JPA specification used by a server, server cluster, or servers that are members of a cluster.

In the Java EE Application Client environment, only the JPA 2.1 specification, using the EclipseLink bundle provided by WebSphere Application Server, is supported..

New feature:

newfeat

WAS version 9 supports both the JPA 2.1 and JPA 2.0 specification levels. JPA 2.1 simplifies the management of relational data in applications. We can find information about supported JPA specification levels and JPA providers using the wsadmin tool or the administrative console. Run the wsadmin AdminTasklistSupportedJPASpecifications command to list JPA specification levels and default JPA providers supported by the product. Run the AdminTask showJPASpecLevel command to identify the JPA specification level used by a cluster or server. Run the AdminTask modifyJPASpecLevel command to change the JPA specification level used by a cluster or server.

Starting with WAS v9, Eclipselink is provided as a JPA 2.1 provider implementation and is the default persistence provider when JPA 2.1 is configured to be the active specification level. Before version 9, WSJPA, the IBM JPA provider based on Apache OpenJPA, which supports the JPA 2.0 specification, was the default JPA persistence provider. Because JPA providers differ in both behavior and vendor-specific APIs, and OpenJPA is not available as a JPA 2.1 specification implementation, WAS v9 provides a JPA 2.0 specification compatibility mode.

The product bundles the following JPA persistence providers:

Use third-party JPA providers as mandated by the JPA specification. The third-party JPA provider implementation must match the enabled JPA specification level.


Tasks