|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface XmlJoinNode
XmlJoinNode is used in conjunction with XmlKey
to specify a reference mapping. This is similar to XmlID and XmlIDREF but allows for keys that are of types other than ID. When used with XmlJoinNodes
can be used to allow composite keys. The referencedXmlPath must match the xpath of a field on the target class that has been annotated with either XmlID or XmlKey.
Example:
@XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Employee { @XmlKey public String id; public String department; @XmlJoinNode(xmlPath="manager/id/text()", referencedXmlPath="id/text()") public Employee manager; }
XmlKey
, XmlJoinNodes
Required Element Summary | |
---|---|
java.lang.String |
referencedXmlPath |
java.lang.String |
xmlPath |
Element Detail |
---|
public abstract java.lang.String xmlPath
public abstract java.lang.String referencedXmlPath
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |