EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

Annotation Type XmlElementsJoinNodes

public @interface XmlElementsJoinNodes

XmlElementsJoinNodes is used in conjunction with XmlElements in order to specify the key references for the targets of the XmlElements annotation. There must be one XmlJoinNodes for each XmlElement This is similar to using XmlIDREF with XmlElements but allows customisation of the xpath for the source keys and allows for composite key relationships.


 public class Client {
       @XmlElement(name="mail", type=Address.class),
       @XmlElement(name="phone", type=PhoneNumber.class)
           @XmlJoinNode(xmlPath="mail/@id", referencedXmlPath="@aid"),
           @XmlJoinNode(xmlPath="mail/type/text()", referencedXmlPath="@type")
           @XmlJoinNode(xmlPath="phone/@id", referencedXmlPath="@pid"),
           @XmlJoinNode(xmlPath="phone/type/text()", referencedXmlPath="@type")
   public Object preferredContactMethod;

See Also:
XmlJoinNodes, XmlJoinNode, XmlElements, XmlKey

Required Element Summary
 XmlJoinNodes[] value

Element Detail


public abstract XmlJoinNodes[] value

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference