mapstruct / mapstruct-examples

Examples for using MapStruct
Other
1.28k stars 512 forks source link

mapstruct #1655 [protobuf] mapstruct fails to honour ADDER_PREFERRED #50

Closed seime closed 5 years ago

seime commented 5 years ago

When when target class has 2 collections of same type.

See issue reported here: https://github.com/mapstruct/mapstruct/issues/1655

This PR demonstrates the issue.

filiphr commented 5 years ago

Thanks a lot for this example @seime. I have manually merged your changes (https://github.com/mapstruct/mapstruct-examples/commit/177e74151aead51da5035c092b2d807f59b15749) and I have adapted the ProtobufAccessorNamingStrategy in order for it to work properly with the protobuf builders (8dd8efc38d12b29c1a43e840ca091597d8960b5b). Your changes are now green