The way creating no-arg constructor in kotlin 2022-03-05 2022-06-01 Gradle, Kotlin Initialize default value for all of parameters.123456789class Sheet( @Id val id: Long = 1, val name: String = "", val author: String = "",) {} Create secondary constructor that initialize each fields.12345678910class Sheet( @Id val id: Long, val name: String, val author: String,) { constructor(): this(1, "", "")} Use no-arg plugin1234567// build.gradle.ktsplugins { // ... kotlin("plugin.jpa") version "1.6.10"}