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