Any JAXB 2.0 annotation can be used, but the following are not recommended:
The javax.xml.bind.annotation.XmlElementDecl annotation is used to provide complete XML schema support.
The @XmlID and @XmlIDREF annotations are used for XML object graph serialization, which is not well supported.