Hi
I have a target property which is a list of typeZ and have a property which is a list of typeA.
Using a defined mapper (listA2listZmapper) I can map my listA to listZ.
I would like to add another source property which is also list of typeA
Which would also use the same mapper and append to the list
@Mapping(target = "ListOfTypeZ", source = "entity1.ListOfTypeA"),
@Mapping(target = "ListOfTypeZ ", source = " entity2.ListOfTypeA"),
But I am getting an error (as below) saying I can only map a target property once.
Is there a work around for this ?
:generateMainMapperClassesCxxx.java:72: error: Target property " ListOfTypeZ " must not be mapped more than once.