Constructor injection via named parameters ala java -parameters or Kotlin (-java-parameters)

Description

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.

Activity

Show:

Steve Ebersole December 14, 2017 at 12:05 PM

This is essentially the same request as

Duplicate

Details

Assignee

Reporter

Components

Priority

Created June 5, 2017 at 4:12 PM
Updated December 14, 2017 at 12:05 PM
Resolved December 14, 2017 at 12:05 PM