[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-376?page=co...
]
bugmenot commented on ANN-376:
------------------------------
What this is it duplicate ? Exists some workaround? Thanks
@SecondaryTable together with
@Inheritance(strategy=InheritanceType.JOINED) fails
---------------------------------------------------------------------------------
Key: ANN-376
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-376
Project: Hibernate Annotations
Issue Type: Bug
Affects 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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira