JPA 属性に対してプロパティの型が一致していないことを報告します。

例:



  @Entity
  public class JavaEntity {

    @OneToOne
    Map<Integer, AnotherEntity> incorrectRelationship; // エラー: 'One To One' 属性の型は Map ではなく Entity にする必要があります

    @ManyToMany
    Map<Integer, AnotherEntity> correctRelationship;
  }