Reputation: 4900
I noticed a (kinda radical) change between the Java EE 6 tutorial and Java EE 5 tutorial in what JAXB is concerned, in the sense that in the 6 tutorial the details are slim and there is no longer a chapter dedicated to JAXB as was the case in version 5.
What are the changes in JAXB from Java 5 to 6? Is the JAXB tutorial for EE 5 enough for EE 6?
Upvotes: 4
Views: 1019
Reputation: 149017
Java EE 5 included JAXB 2.0, and Java EE 6 includes JAXB 2.2. Everything you could do in JAXB 2.0 you can still do in JAXB 2.2.
The main focus area for the JAXB (JSR-222) maintenance releases was to address some integration issues between JAXB and JAX-WS. Below are some of the additions made to the public API:
@XmlSeeAlso
annotation - When a class is being processed this annotation indicates that other classes should be processed as well. This is commonly used to point to the sublasses of a domain class.@XmlTransient
at the type level Specifying @XmlTransient
at the type level allows a class to be removed from the mapping of an inheritance hierarchy (see: http://blog.bdoughan.com/2011/06/ignoring-inheritance-with-xmltransient.html).Java EE 5 Components
Java EE 6 Components
Upvotes: 4