SingularAttributeImpl.isAssociation() always returns false

Description

The org.hibernate.ejb.metamodel.SingularAttributeImpl#isAssociation always returns false, even in case of an association.

Test case:

class Epmloyer {
@ManyToOne
private Department department;
// ...
}

ManagedType<Employer> managedType = entityManager.getMetamodel().managedType(Employer.class);
Attribute<? super Employer, ?> attribute = managedType.getAttribute("department");
assertTrue(attribute instanceof SingularAttribute);
assertTrue(attribute.isAssociation()); // <-- here it fails

Environment

4.1.8.Final

Assignee

Unassigned

Reporter

Viliam Ďurina

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Major
Configure