"MappingException: Unable to find column with logical name" in Hibernate
Issue
-
Encountering an exception after migration from EAP 5.1.0 to a later EAP release (later version of Hibernate)
org.hibernate.MappingException: Unable to find column with logical name: MY_FKPK_COL in EMPLOYEE at org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn.java:420) at org.hibernate.cfg.BinderHelper.createSyntheticPropertyReference(BinderHelper.java:218) ... -
The table seems to contain the column mentioned in the error message
- Random changes to classes in the persistence unit may cause the failure to appear / disappear
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5
- 6
- Hibernate
- 3
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
