Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/JPA/Migration/OpenJPA/PersistenceXML"

< EclipseLink‎ | Examples‎ | JPA‎ | Migration‎ | OpenJPA
Line 1: Line 1:
== OpenJPA to EclipseLink: Persistence Unit Properties ==
+
== OpenJPA to EclipseLink: Persistence XML ==
 +
 
 +
=== Provider ===
 +
 
 +
The JPA persistence provider typically needs to be set during any migration to ensure the EclipseLink JPA provider is used in case multiple providers exist in the target container.
 +
 
 +
<source lang="xml">
 +
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
 +
</source>
 +
 
 +
=== PU Properties ===
 +
 
 +
The following table captures the OpneJPA persistence unit properties and their corresponding EclipseLink JPA properties.
  
 
{|{{BMTableStyle}}
 
{|{{BMTableStyle}}

Revision as of 11:12, 24 September 2009

OpenJPA to EclipseLink: Persistence XML

Provider

The JPA persistence provider typically needs to be set during any migration to ensure the EclipseLink JPA provider is used in case multiple providers exist in the target container.

<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

PU Properties

The following table captures the OpneJPA persistence unit properties and their corresponding EclipseLink JPA properties.

OpenJPA Property Description EclipseLink JPA Equivalent
openjpa.AutoClear
openjpa.AutoDetach
openjpa.BrokerFactory
openjpa.BrokerImpl
openjpa.ClassResolver
openjpa.Compatibility
openjpa.ConnectionDriverName eclipselink.jdbc.driver
openjpa.ConnectionFactory
openjpa.ConnectionFactoryName
openjpa.ConnectionFactoryMode
openjpa.ConnectionFactoryProperties
openjpa.ConnectionPassword eclipselink.jdbc.password
openjpa.ConnectionProperties
openjpa.ConnectionURL eclipselink.jdbc.url
openjpa.ConnectionUserName eclipselink.jdbc.user
openjpa.Connection2DriverName
openjpa.Connection2Properties
openjpa.ConnectionFactory2Name
openjpa.ConnectionFactory2
openjpa.ConnectionFactory2Properties
openjpa.Connection2Password
openjpa.Connection2UserName
openjpa.Connection2URL
openjpa.ConnectionRetainMode
openjpa.DataCache
openjpa.DataCacheManager
openjpa.DataCacheTimeout
openjpa.DetachState
openjpa.DynamicDataStructs
openjpa.FetchBatchSize
openjpa.FetchGroups
openjpa.FlushBeforeQueries
openjpa.IgnoreChanges
openjpa.Id
openjpa.InverseManager
openjpa.LockManager
openjpa.LockTimeout
openjpa.Log Possible values: openjpa, commons, log4j, none eclipselink.logging.logger with values DefaultLogger, JavaLogger, ServerLogger, or custom
openjpa.ManagedRuntime
openjpa.Mapping
openjpa.MaxFetchDepth
openjpa.MetaDataFactory
openjpa.Multithreaded
openjpa.Optimistic
openjpa.OrphanedKeyAction
openjpa.NontransactionalRead
openjpa.NontransactionalWrite
openjpa.ProxyManager
openjpa.QueryCache
openjpa.QueryCompilationCache
openjpa.ReadLockLevel
openjpa.RemoteCommitProvider
openjpa.RestoreState
openjpa.RetainState
openjpa.RetryClassRegistration
openjpa.SavepointManager
openjpa.Sequence
openjpa.TransactionMode
openjpa.WriteLockLevel

Back to the top