Inspectopedia Help

Persistent attribute type checks

Reports property type mismatch for JPA attributes.


@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; }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Jakarta EE: Persistence (JPA), 233.SNAPSHOT

Last modified: 13 July 2023