-->
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: Partitioning persistent models
PostPosted: Mon Apr 18, 2005 10:27 am 
Newbie

Joined: Thu Oct 07, 2004 8:21 am
Posts: 1
Location: Toronto
Suppose I have an app that deals with people employment and reading habits. The app has ``core’’ sub-model with Person class, ``employment’’ sub-model with Employer class and ``reading’’ sub-model with Library class. There is one-to-many association between Employer and Person and many-to-many association between Library and Person. In order to express Person-Employer (or Person-Library) association, especially with bidirectional navigation and cascade-xxx behaviour, Person class must have persistent attribute of type Employer which basically means circular dependency between core and employment sub-models.

This circular dependency becomes a problem for bigger persistent models where it is desired to develop (compile, version, etc) sub-models separately. Using subset of the model (i.e. reading sub-model, but not employment) also seems to be a problem due to the monolith code structure.

So I guess my question is two-folded. First, does it all make sense? And if it does, what do people do to partition bigger persistent models?

_________________
Regards,
Igor


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.