-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: @Inheritance & @JoinTable
PostPosted: Tue Aug 14, 2007 12:01 pm 
Newbie

Joined: Mon Dec 12, 2005 8:57 am
Posts: 13
Hi,

Whenever we try to deploy an entity like:

Code:
@Inheritance(strategy=InheritanceType.JOINED)
public class A {
...
       @JoinTable(name = "A_B", joinColumns =  {
            @JoinColumn(name = "A_ID", referencedColumnName = "ID")
        }, inverseJoinColumns =  {
            @JoinColumn(name = "B_ID", referencedColumnName = "ID")
        })
    @ManyToOne   
    private B b;
}

public class C extends A {
....
}

It fails to deploy in Weblogic 10 with error:
Code:
org.hibernate.AssertionFailure: Table A_B not found at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTableId(JoinedSubclassEntityPersister.java:458) at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:237)

Any help about what is happening? The table exists of course..

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I am sorry but this is not something the runtime supports (JOINED inheritance strategy and @*ToOne @JoinTable

Can you open a JIRa issue, Annotations should have a more meaningful message.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.