Joined: Thu Nov 22, 2007 6:11 am Posts: 6
|
Hello everybody,
I am trying to study how to use polymorphism and self-referencing.
To make things clearer let's say we have a Context generic class (abstract) with several concrete implementations that reference a Context father.
I would like to map these relations in Hibernate and my idea is to use polymorphism.
My guess is that
I think I can handle that either with joined-subclass or subclass tags but not with the union-subclass one.
Am I right ? Or is there a way to do also with union-subclass? In fact I can't see how it would be possible with the SQL tables behind that last mapping.
Thanks in advance for your help!
Regards
Pascal
|
|