How do you specify a XmlAccessorType to be used for JAXB xjc-generated classes

zozoski

New Member
I'm using XML schemas and generating java files with xjc to be used with JAXB.The java files that are generated have the default @XmlAccessorType(XmlAccessType.FIELD) specified.I would like to change this so that the resultant java files have PROPTERY access annotated ( @XmlAccessorType(XmlAccessType.PROPERTY ) ) and not have the @XmlElement / @XmlAttribute annotations generated at the field level.Is there a way to accomplish this via a custom bindings file?
 
Back
Top