[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-376) @SecondaryTable together with @Inheritance(strategy=InheritanceType.JOINED) fails
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Aug 25 18:48:25 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-376?page=all ]
Emmanuel Bernard resolved ANN-376:
----------------------------------
Resolution: Duplicate
ANN-376
> @SecondaryTable together with @Inheritance(strategy=InheritanceType.JOINED) fails
> ---------------------------------------------------------------------------------
>
> Key: ANN-376
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-376
> Project: Hibernate Annotations
> Type: Bug
> Versions: 3.2.0.cr1
> Environment: Hibernate 3.2.0.cr2 included in JBoss4.0.4GA, MySQL 5
> Reporter: André J. Rogger
>
>
> Persister of JoinedSubclassEntity fails together with secondary table annotation (the other inheritence strategies are working fine).
> For example with the following two classes A and B:
> [A.java]
> @Entity
> @SecondaryTable(name="C")
> @Inheritance(strategy=InheritanceType.JOINED)
> public class A {
> @Id
> long id;
>
> @Column(table="C")
> String fieldInC;
> }
> [B.java]
> @Entity
> public class B extends A {
> String fieldOfB;
> }
> the deployment produces the following error:
> org.hibernate.AssertionFailure: Table C not found
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTableId(JoinedSubclassEntityPersister.java:444)
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:225)
> at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:58)
> ...
--
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