Hibernate version:3.1
Mapping documents: my question
I've picked up Hibernate 3.1 after a long layoff. There has been much improvement since 2.x. I would like to know if the following is doable. I've read throught the manual and it is not clear to me if it is.
Class Hierarchy is:
Code:
PARTY(abstract)
BUSINESS INDIVIDUAL
CLIENT BUSINESSA USER INDIVIDUALA
CLIENTA USERA
What i would like in terms of tables is:
PARTY, BUSINESS, INDIVIDUAL, CLIENT, USER separate tables Table per class, joined to Party, Party is abstract. (joined-subclass?)
However, specializations of all of the above classes (except) PARTY, would like to be table per hierarchy. So for example the Table INDIVIDUAL would also house INDIVIDUALA with descriminator. Same with USERA and BUSINESSA.
It appears mixing can be done, but it's not clear if it can be done in the above scenario.
If so, a poiner in the right direction of how to mix the sub-class,join,etc keywords in the mapping file?
thanks for any help.