class A { class ADto {
int id; -> int id;
List<B> b; List<BDto> b;
} }
class B { class BDto {
int id; -> int id;
C c; CDto c;
} }
While converting A -> ADto
, I want to skip mapping of C -> CDto
.
I was under the impression the following mapper would work whenever there is conversion between B -> BDto
, which doesn't seem to be the case; so the following mapper didn't help while coverting (A -> ADto)
...
class BMap extends PropertyMap<B, BDto> {
@Override
protected void configure() {
skip(destination.getC());
}
}
What should be the way to achieve this?