Pelenur, Matias wrote:
> I see. Is there a way then to annotate the original XSD so that the
> generated classes put the annotation on the method instead of the field?
What makes this tricky is that it's not always possible to use methods.
Sometimes methods have some side effect that interferes with
marshalling/unmarshalling --- for example, "int getFoo()" might return a
default value when no value is set.
So this is hard to do in general.
Maybe we can allow it to be configured per property by customization?
Can you first check if moving annotation to the method would really work
:-) ?
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com