Having this
@Mapping(target = "name", source = "comp.employer.title")
// @Mapping(target = "A", ignore = true)
// @Mapping(target = "B", ignore = true)
// @Mapping(target = "C", ignore = true)
// @Mapping(target = "D", ignore = true)
...
@BeanMapping(ignoreByDefault = true)
ADTO map(A a);
works only if
@Getter
@Setter
@Builder(toBuilder = true)
but if target is immutable like
@Value
@Builder(toBuilder = true)
It somehow causes @BeanMapping(ignoreByDefault = true) do not work like as if it was not there.
It is said that Unmapped target properties: "A, B, C, D"
so you have to explicitly ignore them again.
Having this
works only if
but if target is immutable like
It somehow causes
@BeanMapping(ignoreByDefault = true)do not work like as if it was not there.It is said that
Unmapped target properties: "A, B, C, D"so you have to explicitly ignore them again.