I have a class like the following:
@XmlRootElement(name = "task")
class Task{
@XmlElement(name = "id")
Integer id;
@XmlElement(name = "name")
String name;
String bzId;
}
I want to generate an xml like the following:
<task>
<id>1</id>
<name>String</name>
</task>
I can't seem to find it anywhere. How can i not generate the "bzId" in my example?