mapstruct-examples icon indicating copy to clipboard operation
mapstruct-examples copied to clipboard

Kotlin data constructors suggestion

Open Tusenka opened this issue 6 years ago • 0 comments

Thank you for your mapper. It is very useful for apps.

I am using kotlin data classes with val params: data class Person ( var id: Int?=null val name: String val documentId: String ... ) I can't use empty constructor due to notNull notation. I could be wrong, at present time mapper demands empty constructors.

Is it possible to add mapper that uses args constructor?

Thank you, Irina

Tusenka avatar Feb 13 '19 08:02 Tusenka