users@jaxb.java.net

Edit the generated Code

From: <HeruMartinus.Salim_at_infineon.com>
Date: Mon, 16 Oct 2006 15:20:06 +0200

Hallo,

I'm pretty new in using JAXB, and I have some questions about developing
using JAXB.
The problem I met is, the XSD file I used, is still keep changing.
This makes difficult to edit the JAXB generated Code, while when the XSD
file is updated, all the changes I made, would be replaced by the
generated code?

My question is:
How do people usually develop using JAXB? Do the altering the generated
Code? Or simply creating a subclass of the generated classes, and
altering the subclasses?

The solution which I took so far, is by subclassing it in another
package. But still found some problem when generating the XML files,
while the JAXBElement created from the Object factory is from the
package of the generated classes (not the subclasses which I expected).

Can anybody share the experience in developing using JAXB?

Thanks a lot.
Best regards,
Heru