Detects immutable properties annotated with @NotNull.
Suggests making them mutable, to ensure Hibernate compatibility.
嵌入代码段:
@Entity
open class User(
@Id
val id: Long = 0L,
@NotNull
val name: String = "",
)
After applying the quickfix:
@Entity
open class User(
@Id
val id: Long = 0L,
@NotNull
var name: String = "",
)