the method is implemented to always return true:
{code:title=org.hibernate.jpa.internal.metamodel.PluralAttributeImpl} @Override public boolean isAssociation() { return true; } {code}
but it should be:
{code:title=org.hibernate.jpa.internal.metamodel.PluralAttributeImpl} @Override public boolean isAssociation() { return getPersistentAttributeType() == PersistentAttributeType.ONE_TO_MANY || getPersistentAttributeType() == PersistentAttributeType.MANY_TO_MANY; } {code}
to exclude {{@ElementCollection}} attributes, which are NOT associations in terms of entity model, just like {{@Embedded}} attributes are not associations for {{SingularAttribute}}
|
|