Changes between Version 1 and Version 2 of JaxB
- Timestamp:
- 01/30/17 21:39:57 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JaxB
v1 v2 7 7 * annotate all occurences List<X> with @XmlElementRef 8 8 * add @XmlSeeAlso({X1.class, X2.class}) to the X class 9 * add @XmlType to the X class 10 * You can put partial implementations and @XmlElement's in the X class as well 9 11 * annotate X1 and X2 with @XmlRootElement (and maybe give it a nicer name there too) 12 * Put class specific @XmlElement's in X1 and X2 10 13 11 14 General templates like Myclass<T extends Object> do not serialize nicely. This is because erasure causes the class to serialize 'Object' and deserializing 'Object' will probably result in xsi stuff.