| Summary: | [Validation] @XmlID validation | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> |
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | neil.hauge, paul.fullbright |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | 3.1 M3 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Nan Li
Note that once @XmlAnyElement is present on a java attribute, we ignore @XmlID. The validation should be a higher level "this annotation and that annotation don't work together", and probably should be a different bug. From the JAXB 2.2 spec (8.9.11.2) - At most one field or property in a class can be annotated with @XmlID. [ Done, see above] - The type of the field or property must be java.lang.String. - The only other program annotations allowed with @XmlID are: @XmlAttribute and @XmlElement. [ See above ] Also: - The schema type must be mapped to xs:ID. Added for 3.1 M3. |