My Entity has a property,
@Embedded
@XmlTransient
private ReleaseTraits traits;
@XmlTransient
public ReleaseTraits getTraits() {
return traits;
}
But RestEasy (in JBoss AS 7.1) keeps putting it to the JSON. Also, the null values are not omitted.
Any idea why and how to achieve the property to be left out?
@JsonIgnore
works. It seems that the docs is wrong about which provider is the default in JBoss AS 7.
I filed https://issues.jboss.org/browse/AS7-5604 and https://issues.jboss.org/browse/AS7-5605 to target this.