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/MOXy"

(EclipseLink JAXB Examples)
(EclipseLink JAXB Examples)
Line 12: Line 12:
 
== EclipseLink JAXB Examples ==
 
== EclipseLink JAXB Examples ==
 
* [[EclipseLink/Examples/MOXy/GettingStarted | Getting Started]]
 
* [[EclipseLink/Examples/MOXy/GettingStarted | Getting Started]]
 +
*: No metadata is required to convert your existing object model to XML.  Supply metadata (using annotations or XML) only when you need to fine tune the XML representation.  Get started using MOXy.
 
* [[EclipseLink/Examples/MOXy/JAXB | Using EclipseLink JAXB to Manipulate XML]]
 
* [[EclipseLink/Examples/MOXy/JAXB | Using EclipseLink JAXB to Manipulate XML]]
 
** [[EclipseLink/Examples/MOXy/JAXB#Running_the_JAXB_Compiler | Running the JAXB Compiler - Generating classes and mappings from XSD]]
 
** [[EclipseLink/Examples/MOXy/JAXB#Running_the_JAXB_Compiler | Running the JAXB Compiler - Generating classes and mappings from XSD]]
Line 18: Line 19:
 
** [[EclipseLink/Examples/MOXy/JAXB#Marshalling_the_Objects_to_XML | Marshalling objects into XML]]
 
** [[EclipseLink/Examples/MOXy/JAXB#Marshalling_the_Objects_to_XML | Marshalling objects into XML]]
 
** [[EclipseLink/Examples/MOXy/JAXB#Using_JAXBContext_to_Generate_an_XML_Schema | Generating an XSD using a JAXBContext]]
 
** [[EclipseLink/Examples/MOXy/JAXB#Using_JAXBContext_to_Generate_an_XML_Schema | Generating an XSD using a JAXBContext]]
 +
* [[EclipseLink/Examples/MOXy/MeetInTheMiddle | Meet in the Middle Mapping]]
 +
*: Normally in XML Binding solutions there is a one-to-one correspondence between the object model and the levels of nesting in the resulting XML document.  Learn how to leverage MOXy’s XPath based mapping to remove these limitations.
 
* [[EclipseLink/Examples/MOXy/JPA | Mapping JPA Entities to XML]]
 
* [[EclipseLink/Examples/MOXy/JPA | Mapping JPA Entities to XML]]
 +
*: 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.  Learn how to easily map JPA entities to XML using MOXy.
 
* [[EclipseLink/Examples/SDO/JAXB | Converting POJOs to/from SDO DataObjects using the POJO/SDO Bridge (via JAXB)]]
 
* [[EclipseLink/Examples/SDO/JAXB | Converting POJOs to/from SDO DataObjects using the POJO/SDO Bridge (via JAXB)]]
 +
*: Using SDO or SCA and want to leverage JPA to access your persistent data?  Learn how to expose your objects through SDO using MOXy.
  
 
== Using Native OXM through JAXB Examples ==
 
== Using Native OXM through JAXB Examples ==
 
* [[EclipseLink/Examples/MOXy/NativeOxmJaxbContext | Creating a Native OXM aware JAXBContext]]
 
* [[EclipseLink/Examples/MOXy/NativeOxmJaxbContext | Creating a Native OXM aware JAXBContext]]

Revision as of 15:58, 29 January 2010


The following examples are provided to assist developers with their adoption and usage of EclipseLink's JAXB and native OXM functionality.

JAXB Examples

EclipseLink provides standards based JAXB implementation with many extensions. These references are for the JAXB 2.0 reference implementation which is included within EclipseLink for its XSD compiler capabilities (XJC).

EclipseLink JAXB Examples

Using Native OXM through JAXB Examples

Back to the top