It's basically for compatibility with hibernate - ...
# getting-started
c
It's basically for compatibility with hibernate - if I make a class like this:
Copy code
@Entity
data class Form(@Id @GeneratedValue override var id: Long? = null,
                override var date: Date? = null,
                override var name:String? = null) : Post
Then, it's good. Except, I now have setters
k
Checkout: https://kotlinlang.org/docs/reference/compiler-plugins.html#no-arg-compiler-plugin So, you apply the plugin on your
@Entity
Then you’d be able to use
val
like you would normally, also with the advantage of avoiding unnecessary `null`s
Copy code
@Entity
data class Form(
  @Id @GeneratedValue override val id: Long,
  override val date: Date,
  override val name: String
): Post