ChangeScopenew または getOrCreate 関数を使用して Entity を作成する際に割り当てが行われていないプロパティを報告します。

Entity のすべての非 nullable プロパティを割り当てるか、@Many アノテーションを付ける必要があります。 それ以外の場合は、ランタイム例外が発生します。

例:


  interface A : LegacyEntity {
    var x: Int
    var y: Int?
    @Many var z: Int
    var p: Int
  }

  fun ChangeScope.foo() {
    new(A::class) {
      this.p = 0
    }
  }

クイックフィックスを使用すると、欠落している必要なプロパティの割り当てが生成されます


  fun ChangeScope.foo() {
    new(A::class) {
      this.x = x
      this.p = 0
    }
  }