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 and JPA for WebSphere Application Server

Apache OpenJPA is a compliant implementation of the Oracle 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.




Related concepts
Task overview: Storing and retrieving persistent data with the JPA API
Related tasks
Configuring the JPA default persistence provider
Related information
Apache OpenJPA User Guide: Configuration properties
IBM Optim pureQuery Runtime
Concept topic Concept topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 4:16:02 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-dist&topic=cejb_jpanote
File name: cejb_jpanote.html