package jaxb.classes;
import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
public class Task {
@XmlElement(name=\"input\")
private String
There are a couple of ways to support this use case:
Option #1 - @XmlTransient
You can use the @XmlTransient
annotation to prevent a field/property from being marshalled or unmarshalled.
Option #2 - @XmlAccessorType(XmlAccessType.NONE)
You can annotated the class with @XmlAccessorType(XmlAccessType.NONE)
so that only annotated fields/properties will be marshalled/unmarshalled.
For More Information