Skip to main content
Jump to: navigation, search




Provide support for XML inverse reference mapping configuration via XML metadata file.

The following should be supported:

  • Get/set method names
  • Mapped-by

XML Schema

Following is the proposed schema change required to support Xml inverse reference mappings:

<xs:element name="xml-inverse-reference" substitutionGroup="java-attribute">
            <xs:extension base="java-attribute">
                    <xs:element ref="xml-access-methods" minOccurs="0" />
                <xs:attribute name="mapped-by" type="xs:string" />


The follow demonstrates how an XML inverse reference mapping can be configured via XML metadata:

package org.example;
import javax.xml.bind.annotation.XmlElement;
public class Employee {
    public String name;
    public Address address;

package org.example;
import org.eclipse.persistence.oxm.annotations.XmlInverseReference;
public class Address {
    public String street;
    public String city;
    public Employee owningEmployee;


<?xml version="1.0" encoding="US-ASCII"?>
<xml-bindings xmlns="" 
        <java-type name="org.example.Employee">
                <xml-element java-attribute="name" />
                <xml-element java-attribute="address" />
        <java-type name="org.example.Address">
                <xml-element java-attribute="street" />
                <xml-element java-attribute="city" />
                <xml-inverse-reference java-attribute="owningEmployee" mapped-by="address" />

Open Issues

This section lists the open issues that are still pending that must be decided prior to fully implementing this project's requirements.

Issue# Owner Description/Notes


This section lists decisions made. These are intended to document the resolution of open issues or constraints added to the project that are important.

Issue# Description/Notes Decision

Back to the top