[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3937) Inheritance + join table problem for table per subclass mapping
vivek meghanathan (JIRA)
noreply at atlassian.com
Wed Jun 3 02:43:15 EDT 2009
Inheritance + join table problem for table per subclass mapping
---------------------------------------------------------------
Key: HHH-3937
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3937
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.2.6
Environment: 3.3.6.GA, mysql5.0, windows/linux
Reporter: vivek meghanathan
Attachments: myorder.hbm.xml, order.hbm.xml
I have received the following error while trying the table per subclass mapping and tried a join table mapping in the parent class. If it does not have an inheritance relation then it works fine.
The table mentioned below is being created hibernate
------------------------------------------------------------------------------------------------------------------------------
org.hibernate.AssertionFailure: Table WK_CONTACT not found
at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTableId(JoinedSubclassEntityPersister.java:458)
at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:237)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:58)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at com.metaarchit.bookshop.HibernateUtil.init(HibernateUtil.java:19)
at com.metaarchit.bookshop.HibernateUtil.getSessionFactory(HibernateUtil.java:33)
at com.metaarchit.bookshop.HibernateTest.insert(HibernateTest.java:123)
at com.metaarchit.bookshop.HibernateTest.main(HibernateTest.java:26)
null
------------------------------------------------------------------------------------------------------------------------------
--
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