From: <no...@at...> - 2006-06-20 11:11:34
|
@SecondaryTable together with @Inheritance(strategy=3DInheritanceType.JOINE= D) fails ---------------------------------------------------------------------------= ------ Key: ANN-376 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN= -376 Project: Hibernate Annotations Type: Bug Versions: 3.2.0.cr1 =20 Environment: Hibernate 3.2.0.cr2 included in JBoss4.0.4GA, MySQL 5 Reporter: Andr=C3=A9 J. Rogger Persister of JoinedSubclassEntity fails together with secondary table annot= ation (the other inheritence strategies are working fine). For example with the following two classes A and B: [A.java] @Entity @SecondaryTable(name=3D"C") @Inheritance(strategy=3DInheritanceType.JOINED) public class A { =09@Id =09long id; =09 =09@Column(table=3D"C") =09String fieldInC; } [B.java] @Entity public class B extends A { =09String fieldOfB; } the deployment produces the following error: org.hibernate.AssertionFailure: Table C not found =09at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTable= Id(JoinedSubclassEntityPersister.java:444) =09at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(J= oinedSubclassEntityPersister.java:225) =09at org.hibernate.persister.PersisterFactory.createClassPersister(Persist= erFactory.java:58) ... --=20 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 |