instead, i mention a bug i have met.. i think it is a bug, correct me if i am wrong :)
assume there is a root class
ClassA
which ClassB
inherits from.. and there is a ClassC
which inherits from ClassB
..
@Inheritance(strategy=InheritanceType.JOINED)
public ClassA {
...
}
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public ClassB extends ClassA {
...
}
public ClassC extends ClassB {
...
}
It does not matter which inheritance type you specified for
ClassB
, for all hierarchy, the inheritance type specified for ClassA
, the very root class, is used. In above case, the inheritance strategy is JOINED for all..
well, that is all..
Hiç yorum yok:
Yorum Gönder