JPA for WebSphere Application Server

Java™ Persistence API (JPA) 2.0 for WebSphere® Application Server is built on the Apache OpenJPA 2.x open source project.

Apache OpenJPA is a compliant implementation of the JPA specification. Using OpenJPA as a base implementation, WebSphere Application Server employs extensions to provide additional features and utilities for WebSphere Application Server customers. Because JPA for WebSphere Application Server is built from OpenJPA, all OpenJPA function, extensions, and configurations are unaffected by the WebSphere Application Server extensions. You do not need to make changes to OpenJPA applications to use these applications in WebSphere Application Server.

JPA for WebSphere Application Server provides more than compatibility with OpenJPA. JPA for WebSphere Application Server contains a set of tools for application development and deployment. Other features of JPA for WebSphere Application Server include support for DB2® Optim™ pureQuery Runtime, DB2 optimizations, JPA Access Intent, enhanced tracing capabilities, command scripts, and translated message files. The provider of JPA for WebSphere Application Server is com.ibm.websphere.persistence.PersistenceProviderImpl.

Apache OpenJPA supports the use of properties to configure the persistent environment. JPA for WebSphere Application Server properties can be specified with either the openjpa or wsjpa prefix. You can mix the openjpa and wsjpa prefixes as you wish for a common set of properties. Exceptions to the rule are wsjpa specific configuration properties, which use the wsjpa prefix. When a JPA for WebSphere Application Server-specific property is used with the openjpa prefix, a warning message is logged indicating that the offending property is treated as a wsjpa property. The reverse does not hold true for the openjpa prefix. In that case, the offending property is ignored.