users@jaxb.java.net

Re: _at_XmlRootElement disappearing

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 1 Oct 2007 17:34:27 +0200

Hi.

> I have generated a lot of classes from some xsl files and i use JaxB with
> Jax-Ws.
> My problem is that i have added some @XmlRootElement tag on some classes.
> but when i create my JaxWS client it regenerate the classes file WITHOUT my
> new annotation @XmlRootElement.
>
> Is there someone who know why?

The classes are all generated anew. JAXB schema compiler does not
consider changes made to the source code of the generated classes
since this is way too complex.

So if you generate classes, modify them and generate them again, all
your modifications are gone. Quite naturally.

Bye.
/lexi