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.

Environment

All/any

Status

Assignee

Unassigned

Reporter

Christian Bongiorno

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.4

Priority

Minor