-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Mapping this hierarchy doable?
PostPosted: Tue Feb 28, 2006 5:29 pm 
Beginner
Beginner

Joined: Thu Feb 26, 2004 11:45 am
Posts: 46
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.