Annotation @XmlAccessorType determines whether fields/properties will be automatically serialized to XML. Note, that field and method annotations @XmlElement, @XmlAttribute or @XmlTransient take precedence over the default settings.
public class XmlAccessTypeExample {
@XmlAccessorType(XmlAccessT...