Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

334
Views
kotlin-jpa plugin not generating default constructor

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

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I had a very similar issue. While the advice of not using data classes may or may not be a useful one I found that it was the version of the jpa plugin that was at issue try using version 1.3.41

id "org.jetbrains.kotlin.plugin.jpa" version "1.3.41"

over 4 years ago · Santiago Trujillo Report

0

You need to set

`<dependency>
   <groupId>org.jetbrains.kotlin</groupId>
   <artifactId>kotlin-reflect</artifactId>
   <version>1.1.0</version>
</dependency>` 

in your pom.xml

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!