kotlin-jpa plugin not generating default construct

2019-07-19 04:00发布

问题:

I am using kotlin-jpa to generate default constructor to my kotlin entity, however, does are not being generated:

I just used:

id("org.jetbrains.kotlin.plugin.jpa") version "1.3.21"


@Entity
data class PlanSubscription(@Id ...

But event with the kotlin-jpa plugin the constructor is not generated:

No default (no-argument) constructor for class

标签: java jpa kotlin