Hi,
There are a lot of
JAXB annotations like XmlAccessorType, XMLAttribute, etc. When I take any sample XML schema file, and run xjc, it generates
Java class representations of the types and elements in the schema. I also see that it generates very minimal JAXB-specific annotations, e.g. @XmlAccessorType(XmlAccessType.FIELD) at the class level. However, XmlAccessType can also have other values like NONE, PROPERTY and PUBLIC_MEMBER, and can also be specified at the field level.
Question: Is there a way to create the xsd schema or specify xjc options to make it generate the specific class and member level annotations that we need? Or is it standard practice to take the generated files, and then customize them?
Thanks in advance!
Srini