users@jaxb.java.net

generating Annotated classes with JAXB ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Wed, 28 Nov 2007 11:00:21 +0100

How can I generate annotated classes with JAXB ?

I want to generate a class like that:

@Deprecated
public void MyClass {}

@Deprecated is my primary goal, but I am also interested in figure out
how to add any annotation to classes ? How to define it in the Schem
or using customization...


The reason I am looking for that: I am using JAXB as configuration
framework of my application, and some of the configuration values
should not be used anymore. In order to keep the compatibility with
old configuration files, I don't want to rid off the declaration of
the obsolete fields, but rather annotate it as deprecated.