Changes between Version 1 and Version 2 of JaxB


Ignore:
Timestamp:
01/30/17 21:39:57 (8 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JaxB

    v1 v2  
    77 * annotate all occurences List<X> with @XmlElementRef
    88 * 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
    911 * 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
    1013
    1114General 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.