Difference between revisions of "EclipseLink/Examples/MOXy/JPA"

From Eclipsepedia

Jump to: navigation, search
(Replacing page with '== Converting JPA entities to/from XML (via JAXB) == * Binding JPA Relationships to XML * [[EclipseLink/Examples/MOXy/JPA/Com...')
(Converting JPA entities to/from XML (via JAXB))
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
==  Converting JPA entities to/from XML (via JAXB) ==
 
==  Converting JPA entities to/from XML (via JAXB) ==
 +
JPA provides an easy and powerful means to use Java objects to interact with a relational database.  These Java objects are called entities, and have their own characteristics.  Some of these characteristics (bidirectional relationships, compound keys, embedded key classes, and lazy loading) can cause challenges when mapping these objects to XML.  This example demonstrates how to easily overcome these challenges using EclipseLink MOXy (JAXB):
 
* [[EclipseLink/Examples/MOXy/JPA/Relationships | Binding JPA Relationships to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA/Relationships | Binding JPA Relationships to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA/CompoundPrimaryKeys | Binding Compound Primay Keys to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA/CompoundPrimaryKeys | Binding Compound Primay Keys to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA/EmbeddedIdClass | Binding Embedded ID Classes to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA/EmbeddedIdClass | Binding Embedded ID Classes to XML]]

Latest revision as of 12:34, 29 January 2010

[edit] Converting JPA entities to/from XML (via JAXB)

JPA provides an easy and powerful means to use Java objects to interact with a relational database. These Java objects are called entities, and have their own characteristics. Some of these characteristics (bidirectional relationships, compound keys, embedded key classes, and lazy loading) can cause challenges when mapping these objects to XML. This example demonstrates how to easily overcome these challenges using EclipseLink MOXy (JAXB):