-->
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.  [ 1 post ] 
Author Message
 Post subject: mix Joined table strategy with Single Table
PostPosted: Tue Sep 25, 2012 4:18 pm 
Newbie

Joined: Wed Jun 22, 2011 10:40 am
Posts: 2
Hi,
I have a module A working with Joined table strategy and another module B working with Single table strategy.
I want to make an Entity X from B extends an Entity Y from A like this:

Code:
@Entity
@Inheritance( strategy = InheritanceType.JOINED )
@DiscriminatorColumn( name = "entityType",
        discriminatorType = DiscriminatorType.STRING )
public class A
{
}

@Entity
@Inheritance( strategy = InheritanceType.SINGLE_TABLE )
public class B extends A
{
}

@Entity
public class BB1 extends B
{
}


is this possible with Hibernate

regards


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

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.