[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-376) @SecondaryTable together with @Inheritance(strategy=InheritanceType.JOINED) fails

Ilya Liubovich (JIRA) noreply at atlassian.com
Mon Mar 26 09:55:52 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26557 ] 

Ilya Liubovich commented on ANN-376:
------------------------------------

What this is it duplicate off? I have the same issue without annotations with 3.2.2

> @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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the hibernate-issues mailing list