mapstruct / mapstruct-examples

Examples for using MapStruct
Other
1.29k stars 508 forks source link

Copy Nested list with conditional mapping #64

Closed renoshtj closed 5 years ago

renoshtj commented 5 years ago

I have a list of Address object with ID,Street name,City, PostalCode and list of Contact object with ID, Street,City and Phone Can i copy Street name and City alone from List to List

based on ID matching ?

Address Object already has ID and Postalcode.

chris922 commented 5 years ago

Hey @renoshtj! It would be great if you can post the question on Stackoverflow using the mapstruct tag, in our Gitter room or Google group.

In case the described behaviour is not possible and you think it's worth adding it you can raise a new issue in our mapstruct repository with all required information.

Besides that a short example would be great (pseudocode should be enough).