JAXB 2 - Changes Between Java EE 5 and Java EE 6

I noticed a (kind of radical) change between the Java EE 6 tutorial and the Java EE 5 Tutorial with regard to JAXB, in the sense that the details in the 6th tutorial are subtle and there is no longer a chapter on JAXB, as it was in version 5 .

What are the changes in JAXB from Java 5 to 6? Is the JAXB tutorial for EE 5 sufficient for EE 6?

+4
source share
1 answer

Java EE 5 includes JAXB 2.0, and Java EE 6 includes JAXB 2.2. Everything that you could do in JAXB 2.0, you can still do in JAXB 2.2.

The main focus area for JAXB (JSR-222) was to fix some integration issues between JAXB and JAX-WS. The following are some additions to the public API:

  • Introduction to @XmlSeeAlso annotation. When a class is processed, this annotation indicates that other classes should also be processed. This is commonly used to indicate basements of a domain class.
  • Support for @XmlTransient at the level level. Specifying @XmlTransient at the type level allows you to remove the class from the inheritance hierarchy mapping (see http://blog.bdoughan.com/2011/06/ignoring-inheritance-with-xmltransient.html ).

Java EE 5 Components

Java EE 6 Components

+4
source

Source: https://habr.com/ru/post/1434656/


All Articles