Skip to:
I am trying to integrate Kotlin with Hibernate ORM. Specifically, Kotlin data classes.
Kotlin data classes allow you to create truly immutable objects which means that construction through the default constructor and private member access on-the-sly as it is done in Java won't work. [See this SoF example](https://stackoverflow.com/questions/32038177/kotlin-with-jpa-default-constructor-hell)
If hibernate could support constructor injection through named parameters then The world could live in peace and harmony. Perhaps it's supported and I just don't know it.
This is essentially the same request as
I am trying to integrate Kotlin with Hibernate ORM. Specifically, Kotlin data classes.
Kotlin data classes allow you to create truly immutable objects which means that construction through the default constructor and private member access on-the-sly as it is done in Java won't work. [See this SoF example](https://stackoverflow.com/questions/32038177/kotlin-with-jpa-default-constructor-hell)
If hibernate could support constructor injection through named parameters then The world could live in peace and harmony. Perhaps it's supported and I just don't know it.