Hello all,
I asked this question on JavaRanch forums but could not get help.I appreciate if you can give me some clue.
let's assume i have 3 classes,first one,lets say F1 is a a mapped super class
second one,namely F2, is an entity derives from first one
and third entity class named F3 is derived from second one F2
Code:
@MappedClass public class F1{
int i1;
...
@Entity public class F2 extends F1{
int i2;
...
@Entity public class F3 extends F2{
int i3;
...
now the problem:
I want to have 2 tables
T2 mapped by F2 having i1 and i2 [note i1 is coming from F1]
T3 mapped by F3 having i1 and i3 [note i3 is coming from F1]
unfortunately since F3 is derived from F2,I can have i1 only in F2
but I want to have that mapped superclass' fields in both
thanks in advance,