How To Migrate from OpenJPA to EclipseLink JPA
Migrating from OpenJPA to EclipseLink JPA involves a number of standard JPA migration steps plus modification of code to handle extended functionality.
Convert provider and persistence unit properties
- Query Hints
Convert query hint names used in named and dynamic queries
Convert/Fix some non-standard mappings available in OpenJPA
- Extended Functionality
Convert from OpenJPA's extended features
- Leverage EclipseLink's Advanced Capabilities
Convert Extended Functionality
OpenJPA does offer some features that go beyond the JPA specification the following sections describe these features and how you migrate to the corresponding functionality in EclipseLink.
- Inheritance Casting
- Native SQL with POJO results
- Detached (Serialized) entities & relationships