Community
Participate
Working Groups
From the JAXB 2.2 spec (8.9.12.2) - If the type of the field or property is a collection type, then the collection item type must contain a property or field annotated with @XmlID. - If the field or property is not a collection type, then the type of the property or field must contain a property or field annotated with @XmlID. Note: If the collection item type or the type of the property (for non collection type) is java.lang.Object, then the instance must contain a property/field annotated with @XmlID attribute. - The only additional mapping annotations allowed with @XmlIDREF are: @XmlElement, @XmlAttribute, @XmlList, and @XmlElements, @XmlJavaTypeAdapter. If the type of the field or property is a collection type, then each collection item type must be mapped to xs:IDREF. If the type of the field or property is single valued, then the type of the property or field must be mapped to xs:IDREF.
Committed for 3.1 M3