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.
Difference between revisions of "EclipseLink/UserGuide/MOXy"
< EclipseLink | UserGuide
m (→MOXy Introduction) |
m |
||
Line 54: | Line 54: | ||
**[[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]] | **[[EclipseLink/UserGuide/MOXy/Overview/DynamicEntities|Static vs. Dynamic MOXy]] | ||
− | === Basic === | + | === Basic === |
*[[EclipseLink/UserGuide/MOXy/Runtime|Runtime]] | *[[EclipseLink/UserGuide/MOXy/Runtime|Runtime]] | ||
Line 71: | Line 71: | ||
****[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From OXM using DynamicEntities|From OXM using DynamicEntities]] | ****[[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]] --> From sessions.xml using DynamicEntities | ****<!--[[EclipseLink/UserGuide/MOXy/Runtime/Bootstrapping/Single Project/From sessions.xml using DynamicEntities|From sessions.xml using DynamicEntities]] --> From sessions.xml using DynamicEntities | ||
− | **<!--[[EclipseLink/UserGuide/MOXy/Runtime/Querying Objects by XPath|Querying Objects by XPath]] --> Querying by XPath | + | **<!--[[EclipseLink/UserGuide/MOXy/Runtime/Querying Objects by XPath|Querying Objects by XPath]] --> [[EclipseLink/UserGuide/MOXy/Runtime/Querying_Objects_by_XPath|Querying by XPath]] |
**<!--[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects|Converting XML to Objects (Unmarshalling)]] --> Converting XML to Objects (Unmarshalling) | **<!--[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects|Converting XML to Objects (Unmarshalling)]] --> Converting XML to Objects (Unmarshalling) | ||
***<!--[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Sources|Sources (DOM, SAX, StAX, Streams)]] --> Sources (DOM, SAX, StAX, Streams) | ***<!--[[EclipseLink/UserGuide/MOXy/Runtime/Converting XML to Objects/Sources|Sources (DOM, SAX, StAX, Streams)]] --> Sources (DOM, SAX, StAX, Streams) | ||
Line 88: | Line 88: | ||
**<!--[[EclipseLink/UserGuide/MOXy/Type Level/Creating Objects|Creating Objects (Constructors & Factories)]] -->Creating Objects (Constructors & Factories) | **<!--[[EclipseLink/UserGuide/MOXy/Type Level/Creating Objects|Creating Objects (Constructors & Factories)]] -->Creating Objects (Constructors & Factories) | ||
**[[EclipseLink/UserGuide/MOXy/Type Level/Handling Inheritance|Handling Inheritance]] | **[[EclipseLink/UserGuide/MOXy/Type Level/Handling Inheritance|Handling Inheritance]] | ||
− | * | + | *Simple Values |
**[[EclipseLink/UserGuide/MOXy/Simple Values/Single Values/XMLDirectMapping|Mapping Simple Values]] | **[[EclipseLink/UserGuide/MOXy/Simple Values/Single Values/XMLDirectMapping|Mapping Simple Values]] | ||
**[[EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping|Mapping Collections of Simple Values]] | **[[EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping|Mapping Collections of Simple Values]] | ||
**[[EclipseLink/UserGuide/MOXy/Simple Values/Enums|Enums]] | **[[EclipseLink/UserGuide/MOXy/Simple Values/Enums|Enums]] | ||
− | **<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types|Special Schema Types]] -->Special Schema Types | + | **<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types|Special Schema Types]] -->Special Schema Types |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Date and Time Types|Date and Time Types]] -->Date and Time Types | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Date and Time Types|Date and Time Types]] -->Date and Time Types |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types|Binary Types]] -->Binary Types | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types|Binary Types]] -->Binary Types |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Leveraging xsi:type|Leveraging xsi:type]] -->Leveraging xsi:type | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Leveraging xsi:type|Leveraging xsi:type]] -->Leveraging xsi:type |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Unions|Unions]] -->Unions | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Unions|Unions]] -->Unions |
− | *<!-- [[EclipseLink/UserGuide/MOXy/Relationships|Relationships]] --> Relationships | + | *<!-- [[EclipseLink/UserGuide/MOXy/Relationships|Relationships]] --> Relationships |
− | **<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned|Privately Owned]] --> Privately owned | + | **<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned|Privately Owned]] --> Privately owned |
***[[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-One|Mapping One-to-One Relationships]] | ***[[EclipseLink/UserGuide/MOXy/Relationships/Privately Owned/One-to-One|Mapping One-to-One 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-Many|One-to-Many – XMLCompositeCollectionMapping]] <!-- **[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference|Shared Reference]] --> | ||
Line 105: | Line 105: | ||
****[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Single Key|Single Key]] | ****[[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]] | ****[[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Composite Key|Composite Key]] | ||
− | ****<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Embedded Key Class|Embedded Key Class]] --> Embedded Key Class | + | ****<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Keys and Foreign Keys/Embedded Key Class|Embedded Key Class]] --> Embedded Key Class |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-One|Many-to-One – XMLObjectReferenceMapping]] --> Many-to-One – XMLObjectReferenceMapping | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-One|Many-to-One – XMLObjectReferenceMapping]] --> Many-to-One – XMLObjectReferenceMapping |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-|Many-to-Many – XMLCollectionReferenceMapping]] --> Many-to-Many – XMLCollectionReferenceMapping | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Relationships/Shared Reference/Many-to-|Many-to-Many – XMLCollectionReferenceMapping]] --> Many-to-Many – XMLCollectionReferenceMapping |
**[[EclipseLink/UserGuide/MOXy/Relationships/Collections and Maps|Collections and Maps]] | **[[EclipseLink/UserGuide/MOXy/Relationships/Collections and Maps|Collections and Maps]] | ||
− | **<!--[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships|Bidirectional Relationships]] -->Bidirectional Relationships | + | **<!--[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships|Bidirectional Relationships]] -->Bidirectional Relationships |
***[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships/XMLInverseMapping|XMLInverseMapping]] | ***[[EclipseLink/UserGuide/MOXy/Relationships/Bidirectional Relationships/XMLInverseMapping|XMLInverseMapping]] | ||
− | *<!-- [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts|Advanced XML Schema Concepts]] --> Advanced XML Schema Concepts | + | *<!-- [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts|Advanced XML Schema Concepts]] --> Advanced XML Schema Concepts |
**[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Handling Null Values|Handling Null Values]] | **[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Handling Null Values|Handling Null Values]] | ||
− | **<!-- [[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices|Substitution Groups and Choices]] -->Substitution Groups and Choices | + | **<!-- [[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|Substitution Groups and Choices ]] |
− | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceObjectMapping|XMLChoiceObjectMapping]] -->XMLChoiceObjectMapping | + | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceObjectMapping|XMLChoiceObjectMapping]] -->XMLChoiceObjectMapping |
− | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceCollectionMapping|XMLChoiceCollectionMapping]] -->XMLChoiceCollectionMapping | + | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Substitution Groups and Choices/XMLChoiceCollectionMapping|XMLChoiceCollectionMapping]] -->XMLChoiceCollectionMapping |
− | **<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content|Wildcard Content]] --> | + | **<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content|Wildcard Content]] -->Wildcard Content<br> |
− | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyAttributeMapping|XMLAnyAttributeMapping]] --> XMLAnyAttributeMapping | + | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyAttributeMapping|XMLAnyAttributeMapping]] --> XMLAnyAttributeMapping |
− | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyObjectMapping|XMLAnyObjectMapping]] -->XMLAnyObjectMapping | + | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyObjectMapping|XMLAnyObjectMapping]] -->XMLAnyObjectMapping |
− | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyCollectionMapping|XMLAnyCollectionMapping]] -->XMLAnyCollectionMapping | + | ***<!--[[EclipseLink/UserGuide/MOXy/Advanced XML Schema Concepts/Wildcard Content/XMLAnyCollectionMapping|XMLAnyCollectionMapping]] -->XMLAnyCollectionMapping |
− | *<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable|Mapping the Unmappable]] -->Mapping the Unmappable | + | *<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable|Mapping the Unmappable]] -->Mapping the Unmappable |
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Converters|Converters]] | **[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Converters|Converters]] | ||
**[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Transformation Mapping|Transformation Mapping]] | **[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/Transformation Mapping|Transformation Mapping]] | ||
− | **<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentMapping|XMLFragmentMapping]] -->XMLFragmentMapping | + | **<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentMapping|XMLFragmentMapping]] -->XMLFragmentMapping |
− | **<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentCollectionMapping|XMLFragmentCollectionMapping]] -->XMLFragmentCollectionMapping | + | **<!--[[EclipseLink/UserGuide/MOXy/Mapping the Unmappable/XMLFragmentCollectionMapping|XMLFragmentCollectionMapping]] -->XMLFragmentCollectionMapping |
− | *<!--[[EclipseLink/UserGuide/MOXy/Customizing Schemas|Customizing Schemas]] -->Customizing Schemas | + | *<!--[[EclipseLink/UserGuide/MOXy/Customizing Schemas|Customizing Schemas]] -->Customizing Schemas |
*[[EclipseLink/UserGuide/MOXy/Generating Java Classes from an XML Schema|Generating Java Classes from an XML Schema]] | *[[EclipseLink/UserGuide/MOXy/Generating Java Classes from an XML Schema|Generating Java Classes from an XML Schema]] | ||
− | *<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML|Mapping JPA Entities to XML]] --> Mapping JPA Entities to XML | + | *<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML|Mapping JPA Entities to XML]] --> Mapping JPA Entities to XML |
− | **<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Lazily Loaded Fields/Properties|Properties]] --> Properties | + | **<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Lazily Loaded Fields/Properties|Properties]] --> Properties |
− | **<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Bidirectional Relationships|Bidirectional Relationships]] --> Bidirectional Relationships | + | **<!-- [[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Bidirectional Relationships|Bidirectional Relationships]] --> Bidirectional Relationships |
− | **<!--[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]] --> Keys and Foreign Keys | + | **<!--[[EclipseLink/UserGuide/MOXy/Mapping JPA Entities to XML/Keys and Foreign Keys|Keys and Foreign Keys]] --> Keys and Foreign Keys |
− | *<!-- [[EclipseLink/UserGuide/MOXy/Web Services|Web Services]] --> Web Services | + | *<!-- [[EclipseLink/UserGuide/MOXy/Web Services|Web Services]] --> Web Services |
− | **<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments|Attachments]] -->Attachments | + | **<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments|Attachments]] -->Attachments |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataMapping|XMLBinaryDataMapping]] -->XMLBinaryDataMapping | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataMapping|XMLBinaryDataMapping]] -->XMLBinaryDataMapping |
− | ***<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataCollectionMapping|XMLBinaryDataCollectionMapping]] -->XMLBinaryDataCollectionMapping | + | ***<!-- [[EclipseLink/UserGuide/MOXy/Web Services/Attachments/XMLBinaryDataCollectionMapping|XMLBinaryDataCollectionMapping]] -->XMLBinaryDataCollectionMapping |
*[[EclipseLink/UserGuide/MOXy/Spring|Using Eclipselink with Spring]] | *[[EclipseLink/UserGuide/MOXy/Spring|Using Eclipselink with Spring]] |
Revision as of 13:26, 5 April 2011
The EclipseLink MOXy (JAXB) User's Guide
Version 2.2.0
Complete Table of Contents:
MOXy Introduction
- Overview
- MOXy Overiew
- Metadata
- Annotations
- Static vs. Dynamic MOXy
Basic
- Runtime
- Specifying the EclipseLink Runtime
- Bootstrapping
- Dynamic JAXB Bootstrapping
- Specifying the EclipseLink Runtime
- From an XML Schema
- From a Single Project
- From OXM using DynamicEntities
- From sessions.xml using Dynamic Entities
- From Multiple Projects
- From OXM using DynamicEntities
- From sessions.xml using DynamicEntities
- Querying by XPath
- Converting XML to Objects (Unmarshalling)
- Sources (DOM, SAX, StAX, Streams)
- Validating Against an XML Schema
- Events
- Handling Unmapped Content
- Convert Objects to XML (Marshalling)
- Targets (DOM, SAX, StAX, Streams)
- Properties (Formatting & Encoding)
- Events
- Binding to an Existing Document
- Type Level
- Mapping to a Type or Element
- Setting Up Namespace Information
- Creating Objects (Constructors & Factories)
- Handling Inheritance
- Simple Values
- Mapping Simple Values
- Mapping Collections of Simple Values
- Enums
- Special Schema Types
- Date and Time Types
- Binary Types
- Leveraging xsi:type
- Unions
- Relationships
- Privately owned
- Shared Reference
- Keys and Foreign Keys
- Single Key
- Composite Key
- Embedded Key Class
- Many-to-One – XMLObjectReferenceMapping
- Many-to-Many – XMLCollectionReferenceMapping
- Keys and Foreign Keys
- Collections and Maps
- Bidirectional Relationships
- Advanced XML Schema Concepts
- Handling Null Values
- Substitution Groups and Choices
- XMLChoiceObjectMapping
- XMLChoiceCollectionMapping
- Wildcard Content
- XMLAnyAttributeMapping
- XMLAnyObjectMapping
- XMLAnyCollectionMapping
- Mapping the Unmappable
- Converters
- Transformation Mapping
- XMLFragmentMapping
- XMLFragmentCollectionMapping
- Customizing Schemas
- Generating Java Classes from an XML Schema
- Mapping JPA Entities to XML
- Properties
- Bidirectional Relationships
- Keys and Foreign Keys
- Web Services
- Attachments
- XMLBinaryDataMapping
- XMLBinaryDataCollectionMapping
- Attachments
- Using Eclipselink with Spring