Açıklaması şöyle. Bu durumda metodun return tipi void olur
ÖrnekIn some cases you need mappings which don’t create a new instance of the target type but instead update an existing instance of that type. This sort of mapping can be realized by adding a parameter for the target object and marking this parameter with @MappingTarget.
Şöyle yaparız
@Mapperpublic interface CustomerMapper {void updateFromCustomer(Customer customer, @MappingTarget CustomerDto dto);}
Hiç yorum yok:
Yorum Gönder