@Generated - preserving user code - is it supported?
I found the excerpt below, in italics, from the JAXB 2.0 Final Revision specification. It seems to state that there should be a way to generate JAXB classes from a schema and have the properties and methods tagged if the correct argument is supplied to the compiler. I didn't see any support for this in xjc. Is it there? Will it be there?
I didn't want to have to modify the generated source but I'm finding that I need to add some interfaces implementations to a couple of classes that get generated and I don't want to risk the code getting overwritten.
A schema compiler must have an option to generate the Common Annotation,
@javax.annotation.Generated annotation, specified in [CA], on every
generated class, method and field. If a developer does modify an @Generated
annotated method or field, they must denote this modification by deleting the
@Generated annotation. If a developer adds a new method or field, it will not
have an @Generated annotation on it. Based on these conventions, a JAXB
implementation in conjunction with an IDE or other external tool, would be able
to support regeneration of schema-derived code while preserving developer
additions/modifications to methods and fields in a schema-derived class.