[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5060) MappedSuperclass in the middle of class hierarchy - column not found

Sam Donnelly (JIRA) noreply at atlassian.com
Thu Apr 15 14:14:58 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36465#action_36465 ] 

Sam Donnelly commented on HHH-5060:
-----------------------------------

Seems to be related to http://opensource.atlassian.com/projects/hibernate/browse/HHH-5102 and solved in 3.5.1-Final.

> 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