[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5060) MappedSuperclass in the middle of class hierarchy - column not found
bogdan (JIRA)
noreply at atlassian.com
Thu Apr 1 02:18:31 EDT 2010
MappedSuperclass in the middle of class hierarchy - column not found
--------------------------------------------------------------------
Key: HHH-5060
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5060
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.0-CR-2
Reporter: bogdan
Attachments: mappedsuperclasstestcase.zip
We've got model with MappedSuperclass in the middle of class hierarchy:
Person(Entity) -> EmployeeBasic(MappedSuperclass) -> Employee(Entity) -> BossBasic(MappedSuperclass) -> Boss(Entity)
Following exception occurs when we run query: "SELECT p1 FROM Employee p1", which should return instances of Employee and Boss (attached: test.CMappedSuperclassTestCase.testSimpleQueryModel()):
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1167)
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1100)
[...]
Caused by: java.sql.SQLException: Column not found: OWNED11_1_
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
Query against the same model works well when we eliminate MappedSuperclass from hierarchy (attached: test.CMappedSuperclassTestCase.testSimpleQueryModel2()).
Issue didn't occure in previous release: 3.3.2.GA.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list