Jackson hat die @JsonIgnoreProperties
Annotation auf Feldebene, die ist toll, aber manchmal kann es groß sein.Gibt es etwas wie @JsonIgnoreOtherProperties?
@JsonIgnoreProperties({ "name", "phone", ... "20th item"})
private User user;
Ich bin auf der Suche nach so etwas wie:
@JsonIgnoreOtherProperties("email")
private User user;
Also das alle Felder, aber E-Mail ignorieren würde.
Gibt es etwas wie @JsonIgnoreOtherProperties?