Hi Kurt,
Instantiation via constructor arguments is not yet supported, but with version 1.3 builder-support was added.
So you can create a builder that is able to instantiate your
object and MapStruct could use this one, see the documentation: https://mapstruct.org/documentation/stable/reference/html/#mapping-with-builders
As you mentioned Kotlin you might find something valuable for you here:
* https://github.com/mapstruct/mapstruct-examples/tree/master/mapstruct-kotlin
* https://github.com/mapstruct/mapstruct/issues/1672
Best regards,
Christian
--
You received this message because you are subscribed to the Google Groups "mapstruct-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstruct-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstruct-users/b2793e85-5c22-4d06-b2fe-3f72d38128c3%40googlegroups.com.