Sorry the example I've written. It isn't a good one and quite a messy one :).
Please try this one (from real application). It is a hierarchy of Documents (from documents management system):
Can I map next hierarchy using hibernate?
interface A1 -> data stored in tblA1
interface A2 extends A1 -> data stored in tblA2
interface A3 extends A2 -> data stored in tblA3
interface B1 extends A2 -> data stored in tblB1
interface C1 extends A2 -> (no data stored in any tables)
class A implements A3 (object data stored in tblA1,tblA2,tblA3)
class B implements B1 (object data stored in tblA1,tblA2,tblB1)
class C implements C1 (object data stored in tblA1,tblA2)
Is it possible to implement?
|