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

From Eclipsepedia

Jump to: navigation, search
(How To Migrate from OpenJPA to EclipseLink JPA)
Line 1: Line 1:
 
== How To Migrate from OpenJPA to EclipseLink JPA ==
 
== How To Migrate from OpenJPA to EclipseLink JPA ==
  
Migrating from OpenJPA to EclipseLink JPA involves a number of standrd JPA migration steps plus modification of code to handle extended functionality.
+
Migrating from OpenJPA to EclipseLink JPA involves a number of standard JPA migration steps plus modification of code to handle extended functionality.
  
# [[EclipseLink/Examples/JPA/Migration/OpenJPA/PersistenceXML | Persistence.XML]]
+
# [[EclipseLink/Examples/JPA/Migration/OpenJPA/PersistenceXML | Persistence.XML]] <br> ''Convert provider and persistence unit properties''
# [[EclipseLink/Examples/JPA/Migration/OpenJPA/QueryHints | Query Hints]]
+
# [[EclipseLink/Examples/JPA/Migration/OpenJPA/QueryHints | Query Hints]] <br> ''Convert query hint names used in named and dynamic queries''
# Extended Functionality
+
# [[EclipseLink/Examples/JPA/Migration/OpenJPA/Mappings | Mappings]] <br> ''Convert/Fix some non-standard mappings available in OpenJPA''
 +
# Extended Functionality <br> ''Convert from OpenJPA's extended features''
 +
# Leverage EclipseLink's Advanced Capabilities
  
=== Extended Functionality ===
+
== 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.
 
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.
Line 16: Line 18:
 
* Native SQL with POJO results
 
* Native SQL with POJO results
 
* Detached (Serialized) entities & relationships
 
* Detached (Serialized) entities & relationships
 +
 +
== Leverage EclipseLink ==

Revision as of 03:53, 3 November 2009

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.

  1. Persistence.XML
    Convert provider and persistence unit properties
  2. Query Hints
    Convert query hint names used in named and dynamic queries
  3. Mappings
    Convert/Fix some non-standard mappings available in OpenJPA
  4. Extended Functionality
    Convert from OpenJPA's extended features
  5. 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.

  • BigCollection
  • FetchPlan/Group
  • Inheritance Casting
  • Native SQL with POJO results
  • Detached (Serialized) entities & relationships

Leverage EclipseLink