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

EclipseLink/UserGuide/MOXy

Eclipselink-logo.gif

The EclipseLink MOXy (JAXB) User's Guide

Version 2.2.0


Contents

Overview

About EclipseLink

JAXB Overview Accept.png

Runtime

Specifying the EclipseLink Runtime Accept.png

Bootstrapping

From a Single Project Accept.png

From Multiple Projects Accept.png

Generating Schema Accept.png

Converting XML to Objects (Unmarshalling)

Sources (DOM, SAX, StAX, Streams) Elug Delete.png

Handling Unmapped Content Elug Delete.png

Convert Objects to XML (Marshalling)

Targets (DOM, SAX, StAX, Streams) Elug Delete.png

Properties (Formatting & Encoding) Elug Delete.png

Validating Against an XML Schema Accept.png

Events Accept.png

Querying Objects by XPath Accept.png

Binding to an Existing Document Accept.png

Type Level

Mapping to a Type or Element Accept.png

Default Root Element Accept.png

Setting Up Namespace Information Accept.png

Creating Objects (Constructors & Factories) Elug Delete.png

Handling Inheritance Accept.png

Mapping Simple Values and Collections

Mapping Simple Values Accept.png

Mapping Collections of Simple Values Accept.png

Enums Accept.png

Special Schema Types

Date and Time Types Accept.png

Binary Types Elug Delete.png

Leveraging xsi:type Elug Delete.png

Unions Accept.png

 

Mapping Relationships

Mapping Privately Owned Relationships

Mapping One-to-One Relationships Accept.png

Mapping One-to-Many Relationships Accept.png

Shared Reference Mappings

Mapping Single Key Relationships Accept.png

Mapping Composite Key Relationships Accept.png

Bidirectional Relationships Accept.png

Advanced XML Schema Concepts

Handling Null Values Elug Delete.png

Choice Mappings

XMLChoiceObjectMapping Elug Delete.png

XMLChoiceCollectionMapping Elug Delete.png

Wildcard Content

Any Attribute Mapping Elug Delete.png

Any Element Mapping Elug Delete.png

Mapping the Unmappable

Converters Elug about icon.png

XML Transformations Accept.png

XMLFragmentMapping Elug Delete.png

XMLFragmentCollectionMapping Elug Delete.png

Customizing Schemas Elug Delete.png

Generating Java Classes from an XML Schema

JAXB Compiler Accept.png

Dynamic JAXB

Static vs. Dynamic MOXy Accept.png

Specifying the EclipseLink Runtime Accept.png

From an XML Schema Accept.png

From a Single Project

From OXM using DynamicEntities Elug about icon.png

From sessions.xml using DynamicEntities Elug about icon.png

From Multiple Projects

From OXM using DynamicEntities Elug about icon.png

From sessions.xml using DynamicEntities Elug about icon.png

Mapping JPA Entities to XML

Properties Elug about icon.png

Bidirectional Relationships Elug about icon.png

Keys and Foreign Keys Elug about icon.png

Embedded Key Class Elug about icon.png

Web Services

JAX-WS Implementation Elug about icon.png

 


Old version 1.x Documentation

Back to the top