Reports usages of immutable properties in validated JPA entities.

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 = "",
)