| javax.persistence.metamodel.SingularAttribute.getPersistentAttributeType() returns PersistentAttributeType.MANY_TO_ONE instead of PersistentAttributeType.ONE_TO_ONE when entity class which is having annotation on the getter methods is enhanced. Attached the test case PersistentAttributeTypeTest.testPersistanceAttributeType() which passes if run on non-enhanced code. If the same tests case is run after enhance (mvn -P enhance) then it fails. |