Top Description Methods
org.eclipse.persistence.oxm.annotations

public @Interface XmlJoinNodes

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .RetentionPolicy.RUNTIME

XmlJoinNodes is a holder for multiple XmlJoinNode annotations. This is used to specify the source to target associations in a reference mapping with multiple keys. XmlJoinNodes will contain one XmlJoinNode for each key. The targets of the individual XmlJoinNode annotations must be annotated with either XmlID or XmlKey.

Example:

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Employee {

    @XmlKey
    public String id;

    @XmlKey
    public String department;

    @XmlJoinNodes({
        @XmlJoinNode(xmlPath="manager/id/text()", referencedXmlPath="id/text()"),
        @XmlJoinNode(xmlPath="manager/dept/text()", referencedXmlPath="department/text()")
    })
    public Employee manager;
}
See Also
XmlJoinNode, XmlKey

Method Summary

Modifier and TypeMethod and Description
public XmlJoinNode[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public XmlJoinNode[] value()