I have a 3rd party jar library with some POJOs. I want to deserialize them with jackson.
Some of the fields have a double setter, like:
public void setValue(Value value) {
this.value = value.getValue();
}
public void setValue(String value) {
this.value = value;
}
These setters cause jackson
to throw java.lang.IllegalArgumentException: Conflicting setter definitions for property ...
.
Currently I'm ignoring one setter at a time using jackson mixin, but there are so many of these setters that I'm writing as much code as the actual POJO at this point.
Is there a way to ignore ALL setters that have an argument of type Value
?