Two persistence providers are included in WebSphere Application Server: JPA for WebSphere Application Server persistence provider and Apache OpenJPA persistence provider. The JPA for WebSphere Application Server persistence provider is the default provider for WebSphere Application Server. You can use one of the two providers, or a third-party persistence provider, as the default provider.
Property | Apache OpenJPA default value | JPA for WebSphere Application Server default value |
---|---|---|
openjpa.Compatibility | StrictIdentityValues=false | StrictIdentityValues=true |
openjpa.RuntimeUnenhancedClasses | supported | warn |
If a JPA provider is not configured in the <provider> element, the default provider that is currently configured is used. No further configuration needs to be done. If you do not do additional configuration, the default provider, JPA for WebSphere Application Server provider, com.ibm.websphere.persistence.PersistenceProviderImpl, is configured.
For example, to set the Apache OpenJPA persistence provider as the default persistence provider, modify or set the default provider system property, com.ibm.websphere.jpa.default.provider, that is used in the server JVM definition to the value, org.apache.openjpa.persistence.PersistenceProviderImpl. Use the following steps to perform this action:
In this information ... | IBM Redbooks, demos, education, and more(Index) |