I have a mapper like:
Cat toAnotherCat(Cat origin);
And I need an another mapper like that (CatsHouse
has a property: Cat oneOfCats;
):
CatsHouse toNewCatsHouse(CatsHouse catsHouse)
When I run Maven build, in toNewCatsHouse implementation I see newCatHouse.setOneOfCats(toAnotherCat(catsHouse.getOneOfCats()))
But I need newCatHouse.setOneOfCats(catsHouse.getOneOfCats())
instead of this
How can I get it? How can I prohibit to use toAnotherCat automatically?