Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Development/Documentation/MOXy"
< EclipseLink | Development | Documentation
m |
|||
(119 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __NOTOC__<css> | |
− | <css> | + | .editsection {display:none;} |
+ | #bodyContent h2, #bodyContent h3 {margin-bottom:3px;} | ||
li.toclevel-2, li.toclevel-3, li.toclevel-4 {display:none;} | li.toclevel-2, li.toclevel-3, li.toclevel-4 {display:none;} | ||
− | </css> | + | h1 {padding-top:1em;border-bottom:none;} |
− | <div style=" | + | 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 style="font-size: 0.8em;"> | ||
− | = | + | <div style="float: left; width: 49%;"> |
− | = | + | = Overview <br> = |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ==[[EclipseLink/UserGuide/MOXy/ | + | == [[EclipseLink/UserGuide/MOXy/Overview|About EclipseLink]] [[Image:Elug_Delete.png ]] == |
− | + | ||
− | + | ||
− | + | == [[EclipseLink/UserGuide/MOXy/Overview/JAXB|JAXB Overview ]] [[Image:Accept.png]] == | |
− | + | ||
− | + | ||
− | = | + | = Runtime = |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ==[[EclipseLink/UserGuide/MOXy/ | + | == [[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime|Specifying the EclipseLink Runtime]] [[Image:Accept.png]] == |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | == [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping|Bootstrapping]] [[Image:Accept.png]] == | |
− | ==[[EclipseLink/UserGuide/MOXy/ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/XML Bindings|XML Bindings]] [[Image:Accept.png]] == | ||
− | + | == [[EclipseLink/UserGuide/MOXy/Runtime/MetadataSource|MetadataSource]] [[Image:Accept.png]] == | |
− | == | + | == [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Generating Schema|Generating Schema]] [[Image:Accept.png]] == |
+ | |||
+ | == Converting XML to Objects (Unmarshalling) == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Sources|Sources (DOM, SAX, StAX, Streams)]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Handling Unmapped Content|Handling Unmapped Content]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | == Convert Objects to XML (Marshalling) == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML/Targets|Targets (DOM, SAX, StAX, Streams)]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Convert Objects to XML/Properties|Properties (Formatting & Encoding)]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Validating Against an XML Schema|Validating Against an XML Schema]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Events|Events]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Querying Objects by XPath|Querying Objects by XPath]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Binding to an Existing Document|Binding to an Existing Document]] [[Image:Accept.png]] == | ||
+ | |||
+ | = Type Level = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Type Level/Mapping to a Type or Element/Default Root Element|Default Root Element]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Type Level/Setting Up Namespace Information|Setting Up Namespace Information]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Type Level/Creating Objects|Creating Objects (Constructors & Factories)]] [[Image:Elug_Delete.png ]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Type Level/Handling Inheritance|Handling Inheritance]] [[Image:Accept.png]] == | ||
+ | |||
+ | = Mapping Simple Values and Collections = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Simple Values/Single Values/XMLDirectMapping|Mapping Simple Values]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping|Mapping Collections of Simple Values]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Simple Values/Multiple Mappings|Multiple Mappings for a Single Property ]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Simple Values/Enums|Enums]] [[Image:Accept.png]] == | ||
+ | |||
+ | == Special Schema Types == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Date and Time Types|Date and Time Types]] [[Image:Accept.png]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types|Binary Types]] [[Image:Accept.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Leveraging xsi:type|Leveraging xsi:type]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Unions|Unions]] [[Image:Accept.png]] === | ||
+ | </div> <div style="clear: right;"> </div> <div style="float:right;width:49%"> | ||
+ | = Mapping Relationships = | ||
+ | |||
+ | == Mapping Privately Owned Relationships == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-One|Mapping One-to-One Relationships]] [[Image:Accept.png]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-Many|Mapping One-to-Many Relationships]] [[Image:Accept.png]] === | ||
+ | |||
+ | |||
+ | == Shared Reference Mappings == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Single Key|Mapping Single Key Relationships]] [[Image:Accept.png]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Composite Key|Mapping Composite Key Relationships]] [[Image:Accept.png]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships|Bidirectional Relationships]] [[Image:Accept.png]] === | ||
+ | |||
+ | = Advanced Concepts = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Advanced Concepts/Refreshing Metadata|Refreshing Metadata]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Advanced Concepts/Customizing XML Name Conversions|Customizing XML Name Conversions]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Advanced Concepts/Virtual Access Methods|Virtual Access Methods]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Handling Null Values|Handling Null Values]] [[Image:Elug_Delete.png ]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Advanced_Concepts/XPath_Predicates|Mapping using XPath Predicates]] [[Image:Accept.png]] == | ||
+ | |||
+ | |||
+ | == Choice Mappings == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceObjectMapping|XMLChoiceObjectMapping]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceCollectionMapping|XMLChoiceCollectionMapping]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | == Wildcard Content == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyAttributeMapping|Any Attribute Mapping]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyObjectMapping|Any Element Mapping]] [[Image:Elug_Delete.png ]] === | ||
+ | |||
+ | = Mapping the Unmappable = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XmlAdapter|XmlAdapter]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Transformation Mapping|XML Transformations]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentMapping|XMLFragmentMapping]] [[Image:Elug_Delete.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentCollectionMapping|XMLFragmentCollectionMapping]] [[Image:Elug_Delete.png]] == | ||
+ | |||
+ | = Customizing Schemas [[Image:Elug_Delete.png ]] = | ||
+ | |||
+ | = Generating Java Classes from an XML Schema = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Generating_Java_Classes_from_an_XML_Schema|JAXB Compiler]] [[Image:Accept.png]] == | ||
+ | |||
+ | = Dynamic JAXB = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]] [[Image:Accept.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime/Using DynamicEntities|Specifying the EclipseLink Runtime]] [[Image:Accept.png]] == | ||
+ | |||
+ | == Bootstrapping == | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/From Schema|From XML Schema]] [[Image:Accept.png]] === | ||
+ | |||
+ | === [[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/From OXM|From EclipseLink OXM]] [[Image:Accept.png]] === | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Runtime/Dynamic/Customizing|Customizing Generated Mappings]] [[Image:Accept.png]] == | ||
+ | |||
+ | = Mapping JPA Entities to XML = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Lazily Loaded Fields/Properties|Properties]] [[Image:Elug about icon.png]] == | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Bidirectional Relationships|Bidirectional Relationships]] [[Image:Elug about icon.png]]== | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]] [[Image:Elug about icon.png]]== | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Embedded Key Class|Embedded Key Class]] [[Image:Elug about icon.png]] == | ||
+ | |||
+ | = Web Services = | ||
+ | |||
+ | == [[EclipseLink/UserGuide/MOXy/Web_Services|JAX-WS Implementation]] [[Image:Elug about icon.png]] == | ||
+ | |||
+ | |||
+ | </div> </div> <div style="clear: both;"> </div> | ||
+ | |||
+ | '''New items for 2.3''' | ||
+ | *Extensible Domain Models (339371) | ||
+ | *XML Extensions (339381) | ||
+ | *Adding mapping to XMLDescriptor at runtime (339377) | ||
+ | *Persist metadata mods at runtime (339383) | ||
+ | *Multiple Bindings support (339373) | ||
+ | |||
+ | |||
+ | |||
+ | '''Status''' | ||
+ | |||
+ | [[Image:Elug about icon.png]] - Pending Review | ||
+ | |||
+ | [[Image:Accept.png]] - Approved | ||
+ | |||
+ | [[Image:Elug_Delete.png ]] - Content pending | ||
+ | |||
+ | |||
+ | <div style="display: none;"> | ||
+ | ''''Table of Contents '''' | ||
The following is the proposed TOC which is currently '''under development'''. Where applicable, show where existing ELUG wiki pages can be mined for initial content. | The following is the proposed TOC which is currently '''under development'''. Where applicable, show where existing ELUG wiki pages can be mined for initial content. | ||
Line 114: | Line 198: | ||
##Metadata | ##Metadata | ||
##Annotations | ##Annotations | ||
− | ##[[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy | + | ##<strike>[[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]]</strike> [[Image:Accept.png]] |
#[[EclipseLink/UserGuide/MOXy/Runtime|Runtime]] <br>[[Image:Elug about icon.png]] Review | #[[EclipseLink/UserGuide/MOXy/Runtime|Runtime]] <br>[[Image:Elug about icon.png]] Review | ||
− | ##<strike>[[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime|Specifying the EclipseLink Runtime]] </strike> [[Image:Accept.png]] | + | ##<strike>[[EclipseLink/UserGuide/MOXy/Runtime/Specifying the EclipseLink Runtime|Specifying the EclipseLink Runtime]]</strike> [[Image:Accept.png]] |
##Bootstrapping - B ''<br>'' | ##Bootstrapping - B ''<br>'' | ||
###[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project|From a Single Project]]<br>[[Image:Elug about icon.png]] Review | ###[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project|From a Single Project]]<br>[[Image:Elug about icon.png]] Review | ||
Line 205: | Line 289: | ||
##[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]]<br>[[Image:Elug about icon.png]] Review | ##[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]]<br>[[Image:Elug about icon.png]] Review | ||
#[[EclipseLink/UserGuide/MOXy/Web Services|Web Services]] <br>[[Image:Elug about icon.png]]Review<br>''<br>'' | #[[EclipseLink/UserGuide/MOXy/Web Services|Web Services]] <br>[[Image:Elug about icon.png]]Review<br>''<br>'' | ||
+ | </div> |
Latest revision as of 11:12, 15 July 2011
Overview
About EclipseLink ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
JAXB Overview ![Accept.png](/images/2/22/Accept.png)
Runtime
Specifying the EclipseLink Runtime ![Accept.png](/images/2/22/Accept.png)
Bootstrapping ![Accept.png](/images/2/22/Accept.png)
XML Bindings ![Accept.png](/images/2/22/Accept.png)
MetadataSource ![Accept.png](/images/2/22/Accept.png)
Generating Schema ![Accept.png](/images/2/22/Accept.png)
Converting XML to Objects (Unmarshalling)
Sources (DOM, SAX, StAX, Streams) ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Handling Unmapped Content ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Convert Objects to XML (Marshalling)
Targets (DOM, SAX, StAX, Streams) ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Properties (Formatting & Encoding) ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Validating Against an XML Schema ![Accept.png](/images/2/22/Accept.png)
Events ![Accept.png](/images/2/22/Accept.png)
Querying Objects by XPath ![Accept.png](/images/2/22/Accept.png)
Binding to an Existing Document ![Accept.png](/images/2/22/Accept.png)
Type Level
Default Root Element ![Accept.png](/images/2/22/Accept.png)
Setting Up Namespace Information ![Accept.png](/images/2/22/Accept.png)
Creating Objects (Constructors & Factories) ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Handling Inheritance ![Accept.png](/images/2/22/Accept.png)
Mapping Simple Values and Collections
Mapping Simple Values ![Accept.png](/images/2/22/Accept.png)
Mapping Collections of Simple Values ![Accept.png](/images/2/22/Accept.png)
Multiple Mappings for a Single Property ![Accept.png](/images/2/22/Accept.png)
Enums ![Accept.png](/images/2/22/Accept.png)
Special Schema Types
Date and Time Types ![Accept.png](/images/2/22/Accept.png)
Binary Types ![Accept.png](/images/2/22/Accept.png)
Leveraging xsi:type ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Unions ![Accept.png](/images/2/22/Accept.png)
Mapping Relationships
Mapping Privately Owned Relationships
Mapping One-to-One Relationships ![Accept.png](/images/2/22/Accept.png)
Mapping One-to-Many Relationships ![Accept.png](/images/2/22/Accept.png)
Mapping Single Key Relationships ![Accept.png](/images/2/22/Accept.png)
Mapping Composite Key Relationships ![Accept.png](/images/2/22/Accept.png)
Bidirectional Relationships ![Accept.png](/images/2/22/Accept.png)
Advanced Concepts
Refreshing Metadata ![Accept.png](/images/2/22/Accept.png)
Customizing XML Name Conversions ![Accept.png](/images/2/22/Accept.png)
Virtual Access Methods ![Accept.png](/images/2/22/Accept.png)
Handling Null Values ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Mapping using XPath Predicates ![Accept.png](/images/2/22/Accept.png)
Choice Mappings
XMLChoiceObjectMapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
XMLChoiceCollectionMapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Wildcard Content
Any Attribute Mapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Any Element Mapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Mapping the Unmappable
XmlAdapter ![Accept.png](/images/2/22/Accept.png)
XML Transformations ![Accept.png](/images/2/22/Accept.png)
XMLFragmentMapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
XMLFragmentCollectionMapping ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Customizing Schemas ![Elug Delete.png](/images/2/2b/Elug_Delete.png)
Generating Java Classes from an XML Schema
JAXB Compiler ![Accept.png](/images/2/22/Accept.png)
Dynamic JAXB
Static vs. Dynamic MOXy ![Accept.png](/images/2/22/Accept.png)
Specifying the EclipseLink Runtime ![Accept.png](/images/2/22/Accept.png)
Bootstrapping
From XML Schema ![Accept.png](/images/2/22/Accept.png)
From EclipseLink OXM ![Accept.png](/images/2/22/Accept.png)
Customizing Generated Mappings ![Accept.png](/images/2/22/Accept.png)
Mapping JPA Entities to XML
Properties ![Elug about icon.png](/images/3/33/Elug_about_icon.png)
Bidirectional Relationships ![Elug about icon.png](/images/3/33/Elug_about_icon.png)
Keys and Foreign Keys ![Elug about icon.png](/images/3/33/Elug_about_icon.png)
Embedded Key Class ![Elug about icon.png](/images/3/33/Elug_about_icon.png)
Web Services
JAX-WS Implementation ![Elug about icon.png](/images/3/33/Elug_about_icon.png)
New items for 2.3
- Extensible Domain Models (339371)
- XML Extensions (339381)
- Adding mapping to XMLDescriptor at runtime (339377)
- Persist metadata mods at runtime (339383)
- Multiple Bindings support (339373)
Status