Reports property type mismatch for JPA attributes.

Example:



  @Entity
  public class JavaEntity {

    @OneToOne
    Map<Integer, AnotherEntity> incorrectRelationship; // Error: 'One To One' attribute type should be an entity, not a map

    @ManyToMany
    Map<Integer, AnotherEntity> correctRelationship;
  }