-->
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 a large information model with rich associations
PostPosted: Mon Jun 20, 2005 2:44 pm 
Newbie

Joined: Mon Jun 20, 2005 2:02 pm
Posts: 8
Location: San Jose, CA
Folk,

I am new to Hibernate but have not found relevant info for this question.

I have a rich information model (IM) (the DMTF's CIM as mapped for Cisco System's needs). The IM is rooted in a single class, Top. Top is abstract. Top is used extensively as a member of associations so that the association behavior is generally inherited. In most cases, these associations are many-to-many.

I plan to use the "first concrete class" approach to assigning subtrees in the hierarchy to tables. In addition, I will support individual developers desire to partition further than the first concrete class (they may cut the inheritance tree further down to create more fine grained tables). Using this technique, I find that I have about 80 tables.

The problem arises when I attempt the create the many-to-many association mappings. In so far as the associations are defined at the highest layer of the IM, I must provide association mapping for every table. For the many-to-many mappings, I find that I would create around 1200 mapping tables to deal with the top 15 associations alone. The number of tables alone is not the problem. The problem is the joins which will have to be created when an association is walked at a high level in the IM.

I am hoping that I can create a single mapping table per association. However, to do this, I must be able to refer to multiple tables implementing the objects (using the first concrete class method to partition the IM) from a single mapping table. I have no idea how such referencing might be possible OR if there is a better way to do the job to begin with.

Hoping for some insights :-)

-steve[/list]

_________________
Stephen Schleimer
(408) 527-3291
Cisco Systems, Inc


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.