Open hualmeid opened 3 years ago
Hey @hualmeid,
The issue list is not meant for asking questions, if you need to ask a question then please use StackOverflow.
Mapping between an array and List should work, so I would suggest to first try without protobuf and then see why it doesn't work with protobuf. If it is not working without protobuf please raise an issue in the mapstruct project.
@hualmeid you might also want to have a look at https://github.com/entur/mapstruct-spi-protobuf for the protobuf part - no need to add specific mappings for repeated elements (which generates Lists in protobuf)
Good point @seime, thanks for pointing it out. Btw @seime if you want we could add the mapstruct-spi-protobuf
in the MapStruct Documentation, feel free to add a PR
Hi,
Would be nice to have an example that shows the usage of MapStruct with array (like int[] ) to immutable list with specific add and addAll (like in protobuf).
example: proto file
java file
Mapper
Error: Can't map property "Permission[] permissions" to "PermissionDTO permissionsList".
### Desired solution:
or
Is it possible to do this with actual release?