You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassAddress {
privateStringline1;
privateStringline2;
privateStringzipCode;
privateStringcity;
privateStringcountry;
privateList<Person> persons// Cyclic reference here !// + Getters and Setters
}
@Mapper(withCyclicMappings = true)
publicinterfacePersonMapper {
// Returns a new instance of PersonDTO mapped from Person sourcePersonDtoasPersonDTO(Personsource);
}
@Mapper(withCyclicMappings = true)
publicinterfaceAddressMapper {
// Returns a new instance of AddressDTO mapped from Address sourceAddressDtoasAddressDTO(Addresssource);
}
Implementations generated by SELMA from the interfaces do not compile because the mapping methods are duplicated.
Any idea about what's going wrong ?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to map a bean A which contains a list of beans B which itself contains a list of beans A.
I have
@Mapper(withCyclicMapping = true)
annotation on each of interfaces.Example :
Implementations generated by SELMA from the interfaces do not compile because the mapping methods are duplicated.
Any idea about what's going wrong ?
Thanks
The text was updated successfully, but these errors were encountered: