users@jaxb.java.net

Re: Turn off annotations

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Sun, 26 Jul 2009 12:45:57 +0200

Hi,


> I need to generate classes from XSDs. Those classes will be used in GWT
> application.
>
> As GWT compiler doest not support JAXB annotation, is there a way to turn
> off annotations in JAXB?
>
> Any help would be appreciated.

Theoretically this is possible, but practically - not at the moment.

JAXB mappings can be defined in XML resources instead of annotations:

http://confluence.highsource.org/display/ANX/User+guide
http://confluence.highsource.org/display/ANX/JAXB+User+Guide

However, at the moment XJC generates annotations and only annotations.
Theoretically XJC could generate mappings in XML resources, but it
does not at the moment and it can't be easily extended to do that.

Bye.
/lexi