Issue Type: Bug Bug
Assignee: Unassigned
Created: 19/Nov/12 4:28 AM
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
Project: Java Persistence API
Priority: Major Major
Reporter: Viliam Ďurina
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira