Skip to content

No default constructor for entity #671

@yooouuri

Description

@yooouuri

I'm getting the error No default constructor for entity when using kotlin.

After adding the kotlin-jpa plugin, the error is gone. That makes sense.

Without the plugin there will be no empty constructors in your models.

So when you choose JPA and Kotlin as language maybe add the plugin to the build.gradle?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions