I have two classes:
@JsonIgnoreProperties(values="foo", allowGetters = true)
public class Parent {
String foo;
String bar;
}
@JsonIgnoreProperties(values="alice", allowGetters = true)
public class Child extends Parent {
String alice;
String bob;
}
This results in a class Child where the attribute foo is not ignored (for setting). So I assume JsonIgnoreProperties of Child overrides JsonIgnoreProperties of Parent.
But I need a way to merge JsonIgnoreProperties of Child and JsonIgnoreProperties of Parent. How to do this? TIA!