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