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

m (MOXy Introduction)
m
 
(48 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
'''[[Image:Elug_draft_icon.png|Warning]] This page is now obsolete. Please see the ''[http://www.eclipse.org/eclipselink/documentation/ Developing JAXB Applications Using EclipseLink MOXy]'' in the EclipseLink Documentation Center for the latest information.
 +
 +
 +
----
 +
 +
 
__NOTOC__<div style="float:left;width:320px">[[Image:Eclipselink-logo.gif]] </div>
 
__NOTOC__<div style="float:left;width:320px">[[Image:Eclipselink-logo.gif]] </div>
=The EclipseLink MOXy (JAXB) User's Guide <br /><br /> Version 2.2.0 (In progress)=
+
=The EclipseLink MOXy (JAXB) User's Guide <br /><br /> =
 
<div style="float:right;">[[Image:Eclipselink_moxy.png]]
 
<div style="float:right;">[[Image:Eclipselink_moxy.png]]
 
<div style="text-align:center;margin:2em 0;">
 
<div style="text-align:center;margin:2em 0;">
<p>[[Image:Elug_home_icon.png|link="../"]]<br />[http://www.eclipse.org/eclipselink/ EclipseLink Home]</p>
+
<p>[[Image:Elug_home_icon.png]] See [http://www.eclipse.org/eclipselink/ EclipseLink Home]</p>
 
</div>
 
</div>
 
</div>
 
</div>
 +
<!--
 +
 
<div>
 
<div>
 
<div style="border:1px solid #d9d9d9;-moz-border-radius:8px 8px 8px 8px;background:#efefef;padding:10px;margin-right:125px;margin-bottom:5em;">
 
<div style="border:1px solid #d9d9d9;-moz-border-radius:8px 8px 8px 8px;background:#efefef;padding:10px;margin-right:125px;margin-bottom:5em;">
Line 12: Line 20:
 
   <td style="text-align:right;"><h3>[[EclipseLink/UserGuide/MOXy/Introduction|Introduction:]]</h3></td>
 
   <td style="text-align:right;"><h3>[[EclipseLink/UserGuide/MOXy/Introduction|Introduction:]]</h3></td>
 
   <td>[[Image:Elug_about_icon.png|link=]]<br />[[EclipseLink/UserGuide/MOXy/Overview|About EclispeLink]]</td>
 
   <td>[[Image:Elug_about_icon.png|link=]]<br />[[EclipseLink/UserGuide/MOXy/Overview|About EclispeLink]]</td>
   <td><br />[http://wiki.eclipse.org/EclipseLink/Release Release Notes]</td>
+
   <td><br />[[EclipseLink/Release/2.2.0|Release Notes]]</td>
 
   <td><br />[http://wiki.eclipse.org/EclipseLink/FAQ FAQs]</td>
 
   <td><br />[http://wiki.eclipse.org/EclipseLink/FAQ FAQs]</td>
 
   <td><br />[http://www.eclipse.org/eclipselink/api/ Javadoc (API)]</td>
 
   <td><br />[http://www.eclipse.org/eclipselink/api/ Javadoc (API)]</td>
Line 32: Line 40:
 
  <tr>
 
  <tr>
 
   <td></td>
 
   <td></td>
   <td colspan="5">[[image:Search elug.png]] Search the entire EclipseLink wiki [http://www.google.com/coop/cse?cx=002128250543942842320%3Aqffgtrd2s3k&hl=en Google Custom Search Engine].<!--
+
   <td colspan="5">[[image:Search elug.png]] [http://www.google.com/cse/home?cx=016171230611334810008:brtjnxzsfyg Search the MOXy documentation wiki].
<form action="http://www.google.com/cse">
+
</td>
<input type="text" size="25" id="q" name="q" />
+
<input type="hidden" name="cx" value="002128250543942842320%3Aqffgtrd2s3k" />
+
http://www.google.com/cse?cx=002128250543942842320%3Aqffgtrd2s3k&ie=UTF-8&q=foo
+
 
+
</form>
+
 
+
-->
+
  </td>
+
 
  </tr>
 
  </tr>
 
</table></div>
 
</table></div>
 
</div>
 
</div>
[http://wiki.eclipse.org/Category:XML Old version 1.x Documentation]
+
-->
  
[[Category: XML]]
+
<css>
[[Category:EclipseLink/Documentation|MOXy (JAXB) User's Guide]]
+
.editsection {display:none;}
 +
#bodyContent h2, #bodyContent h3 {margin-bottom:3px;}
 +
li.toclevel-2, li.toclevel-3, li.toclevel-4 {display:none;}
 +
h1 {padding-top:1em;border-bottom:none;}
 +
h2 span.mw-headline {font-size:0.8em;text-transform:uppercase;font-weight:bold;}
 +
h2, h3, h4 {border-bottom:none;padding-top:0;padding-bottom:0}
 +
h3 span.mw-headline {font-size:0.9em;margin-left:1em;font-weight:normal;}
 +
h4 span.mw-headline {margin-left:2em;font-weight:normal;}
 +
.widetoc #toc {width:99%;}
 +
</css>
 +
<div class="widetoc">__TOC__</div> <div style="font-size: 0.8em;">
  
 +
<div style="float: left; width: 49%;">
 +
= Overview <br> =
  
<hr />
+
== [[EclipseLink/UserGuide/MOXy/Overview/JAXB|MOXy Overview ]]  ==
  
==Complete Table of Contents:==
+
= Runtime  =
  
===MOXy Introduction===
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime|Specifying the EclipseLink Runtime]]   ==
*<!-- [[EclipseLink/UserGuide/MOXy/Overview|Overview]] --> Overview
+
**[[EclipseLink/UserGuide/MOXy/Overview/MOXy|MOXy Overiew]]
+
**[[EclipseLink/UserGuide/MOXy/Overview/JAXB Overview|JAXB Overview]]
+
**Metadata
+
**Annotations
+
**[[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]]
+
  
===Basic===
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping|Bootstrapping]] ==
*[[EclipseLink/UserGuide/MOXy/Runtime|Runtime]]
+
 
**[[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime|Specifying the EclipseLink Runtime]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/XML_Bindings|XML Bindings]] ==
**<!-- [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping|Bootstrapping]] --> Bootstrapping
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project|From a Single Project]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/MetadataSource|MetadataSource]] ==
***[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Multiple Projects|From Multiple Projects]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Generating Schema|Generating Schema]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Generating Schema|Generating Schema]]   ==
**[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping Dynamic|Dynamic JAXB Bootstrapping]]
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime/Using DynamicEntities|Specifying the EclipseLink Runtime]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Validating Against an XML Schema|Validating Against an XML Schema]] ==
***[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/From Schema|From an XML Schema]]  
+
 
***From a Single Project
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Events|Events]] ==
****[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From OXM using DynamicEntities|From OXM using DynamicEntities]]
+
 
****[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From sessions.xml using DynamicEntities|From sessions.xml using DynamicEntities]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Querying Objects by XPath|Querying Objects by XPath]]   ==
***From Multiple Projects
+
 
****[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From OXM using DynamicEntities|From OXM using DynamicEntities]]
+
== [[EclipseLink/UserGuide/MOXy/Runtime/Binding to an Existing Document|Binding to an Existing Document]] ==
****[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From sessions.xml using DynamicEntities|From sessions.xml using DynamicEntities]]
+
 
**[[EclipseLink/UserGuide/MOXy/Runtime/Querying Objects by XPath|Querying Objects by XPath]]
+
= Type Level =
**[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects|Converting XML to Objects (Unmarshalling)]]
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Sources|Sources (DOM, SAX, StAX, Streams)]]
+
== [[EclipseLink/UserGuide/MOXy/Type Level/Mapping to a Type or Element/Default Root Element|Default Root Element]]   ==
***[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Validating Against an XML Schema|Validating Against an XML Schema]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Events|Events]]  
+
== [[EclipseLink/UserGuide/MOXy/Type Level/Setting Up Namespace Information|Setting Up Namespace Information]]   ==
***[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Handling Unmapped Content|Handling Unmapped Content]]
+
 
**[[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML|Convert Objects to XML (Marshalling)]]  
+
== [[EclipseLink/UserGuide/MOXy/Type Level/Handling Inheritance|Handling Inheritance]]   ==
***[[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML/Targets|Targets (DOM, SAX, StAX, Streams)]]
+
 
***[[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML/Properties|Properties (Formatting &amp; Encoding)]]
+
=  Mapping Simple Values and Collections  =
***[[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML/Events|Events]]
+
 
**[[EclipseLink/UserGuide/MOXy/Runtime/Binding to an Existing Document|Binding to an Existing Document]]  
+
== [[EclipseLink/UserGuide/MOXy/Simple Values/Single Values/XMLDirectMapping|Mapping Simple Values]]   ==
*[[EclipseLink/UserGuide/MOXy/Type Level|Type Level]]
+
 
**[[EclipseLink/UserGuide/MOXy/Type Level/Mapping to a Type or Element|Mapping to a Type or Element]]
+
== [[EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping|Mapping Collections of Simple Values]]   ==
***[[EclipseLink/UserGuide/MOXy/Type Level/Mapping to a Type or Element/Default Root Element|Default Root Element]]
+
 
**[[EclipseLink/UserGuide/MOXy/Type Level/Setting Up Namespace Information|Setting Up Namespace Information]]
+
== [[EclipseLink/UserGuide/MOXy/Simple Values/Multiple Mappings|Multiple Mappings for a Single Property ]] ==
**[[EclipseLink/UserGuide/MOXy/Type Level/Creating Objects|Creating Objects (Constructors &amp; Factories)]]
+
 
**[[EclipseLink/UserGuide/MOXy/Type Level/Handling Inheritance|Handling Inheritance]]  
+
== [[EclipseLink/UserGuide/MOXy/Simple Values/Enums|Mapping Enums]]   ==
*[[EclipseLink/UserGuide/MOXy/Simple Values|Simple Values]]
+
 
**[[EclipseLink/UserGuide/MOXy/Simple Values/Single Values|Single Values]]
+
== Special Schema Types ==
***[[EclipseLink/UserGuide/MOXy/Simple Values/Single Values/XMLDirectMapping|XMLDirectMapping]]
+
 
**[[EclipseLink/UserGuide/MOXy/Simple Values/Collections|Collections]]
+
=== [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Date and Time Types|Date and Time Types]] ===
***[[EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping|XMLDirectCollectionMapping]]
+
 
**[[EclipseLink/UserGuide/MOXy/Simple Values/Enums|Enums]]  
+
=== [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Unions|Unions]]   ===
**[[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types|Special Schema Types]]
+
 
***[[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Date and Time Types|Date and Time Types]]  
+
=== [[EclipseLink/UserGuide/MOXy/Simple_Values/Special_Schema_Types/Binary_Types|Binary Types]] ===
***[[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types|Binary Types]]
+
 
***[[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Leveraging xsi:type|Leveraging xsi:type]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Unions|Unions]]  
+
</div> <div style="clear: right;">&nbsp;</div> <div style="float:right;width:49%">
*[[EclipseLink/UserGuide/MOXy/Relationships|Relationships]]
+
= Mapping Relationships =
**[[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned|Privately Owned]]
+
 
***[[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-One|One-to-One – XMLCompositeObjectMapping]]  
+
== Mapping Privately Owned Relationships ==
***[[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-Many|One-to-Many – XMLCompositeCollectionMapping]]
+
 
<!-- **[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference|Shared Reference]] -->
+
=== [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-One|Mapping One-to-One Relationships]]   ===
**Shared Reference
+
 
***[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys|Keys and Foreign Keys]]
+
=== [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-Many|Mapping One-to-Many Relationships]]   ===
****[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Single Key|Single Key]]
+
 
****[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Composite Key|Composite Key]]
+
== Shared Reference Mappings ==
****[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Embedded Key Class|Embedded Key Class]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-One|Many-to-One – XMLObjectReferenceMapping]]
+
=== [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Single Key|Mapping Single Key Relationships]] ===
***[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-|Many-to-Many – XMLCollectionReferenceMapping]]
+
 
**[[EclipseLink/UserGuide/MOXy/Relationships/Collections and Maps|Collections and Maps]]
+
=== [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Composite Key|Mapping Composite Key Relationships]] ===
**[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships|Bidirectional Relationships]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships/XMLInverseMapping|XMLInverseMapping]]
+
=== [[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships|Bidirectional Relationships]] ===
*[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts|Advanced XML Schema Concepts]]
+
 
**[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Handling Null Values|Handling Null Values]]
+
= Advanced Concepts =
**[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices|Substitution Groups and Choices]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceObjectMapping|XMLChoiceObjectMapping]]
+
== [[EclipseLink/UserGuide/MOXy/Advanced Concepts/Refreshing Metadata|Refreshing Metadata]] ==
***[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceCollectionMapping|XMLChoiceCollectionMapping]]
+
 
**[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content|Wildcard Content]]  
+
== [[EclipseLink/UserGuide/MOXy/Advanced Concepts/Customizing XML Name Conversions|Customizing XML Name Conversions]] ==
***[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyAttributeMapping|XMLAnyAttributeMapping]]
+
 
***[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyObjectMapping|XMLAnyObjectMapping]]  
+
== [[EclipseLink/UserGuide/MOXy/Advanced_Concepts/Virtual_Access_Methods|Virtual Access Methods]] ==
***[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyCollectionMapping|XMLAnyCollectionMapping]]  
+
 
*[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable|Mapping the Unmappable]]
+
== [[EclipseLink/UserGuide/MOXy/Advanced_Concepts/XPath_Predicates|Mapping using XPath Predicates]] ==
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Converters|Converters]]  
+
 
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Transformation Mapping|Transformation Mapping]]  
+
= Mapping the Unmappable =
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentMapping|XMLFragmentMapping]]  
+
 
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentCollectionMapping|XMLFragmentCollectionMapping]]  
+
== [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XmlAdapter|XmlAdapter]] ==
*[[EclipseLink/UserGuide/MOXy/Customizing Schemas|Customizing Schemas]]  
+
 
*[[EclipseLink/UserGuide/MOXy/Generating Java Classes from an XML Schema|Generating Java Classes from an XML Schema]]  
+
== [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Transformation Mapping|XML Transformations]]   ==
*[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML|Mapping JPA Entities to XML]]
+
 
**[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Lazily Loaded Fields/Properties|Properties]]  
+
= Generating Java Classes from an XML Schema  =
**[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Bidirectional Relationships|Bidirectional Relationships]]
+
 
**[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]]  
+
== [[EclipseLink/UserGuide/MOXy/Generating_Java_Classes_from_an_XML_Schema|JAXB Compiler]] ==
*[[EclipseLink/UserGuide/MOXy/Web Services|Web Services]]
+
 
**[[EclipseLink/UserGuide/MOXy/Web Services/Attachments|Attachments]]  
+
= Dynamic JAXB  =
***[[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataMapping|XMLBinaryDataMapping]]  
+
 
***[[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataCollectionMapping|XMLBinaryDataCollectionMapping]]
+
== [[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]] ==
*[[EclipseLink/UserGuide/MOXy/Spring|Using Eclipselink with Spring]]
+
 
 +
== [[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime/Using DynamicEntities|Specifying the EclipseLink Runtime]] ==
 +
 
 +
== Bootstrapping ==
 +
 
 +
=== [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/From Schema|From XML Schema]] ===
 +
 
 +
=== [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/From OXM|From EclipseLink OXM]] ===
 +
 
 +
== [[EclipseLink/UserGuide/MOXy/Runtime/Dynamic/Customizing|Customizing Generated Mappings]] ==
 +
 
 +
 
 +
</div> </div> <div style="clear: both;">&nbsp;</div>
 +
 
 +
 
 +
 
 +
[http://wiki.eclipse.org/Category:XML Old version 1.x Documentation]
 +
 
 +
[[Category: XML]]
 +
[[Category:EclipseLink/Documentation|MOXy (JAXB) User's Guide]]

Latest revision as of 11:37, 4 February 2013

Warning This page is now obsolete. Please see the Developing JAXB Applications Using EclipseLink MOXy in the EclipseLink Documentation Center for the latest information.




Eclipselink-logo.gif

The EclipseLink MOXy (JAXB) User's Guide


 
 


Old version 1.x Documentation

Back to the top