JPA mixed inheritance strategy issue
754114Feb 16 2010 — edited Mar 3 2010Table : A, b
Class : A, B, C
@Entity
@Table(name="A")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name="type")
abstract Class A
@Entity
@Table(name="B")
@DiscriminatorValue("B")
@PrimaryKeyJoinColumn()
Class B extends A
@Entity
@DiscriminatorValue("C")
Class C extends A
From A - B its *@Inheritance(strategy=InheritanceType.JOINED)* and from A - C its *@Inheritance(strategy=InheritanceType.SINGLE_TABLE)* by default. When I try to run some test Toplink doesn't identifies class C as mixed strategy but expects C to have its own table as the super class A is specified with Joined strategy. Not sure how else would mixed strategy work !
Any help would be greatly appreciated.
Tx
K