-->
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: value iheritance (not class inheritance) possible?
PostPosted: Thu Jun 03, 2004 9:06 pm 
Newbie

Joined: Thu Jun 03, 2004 8:49 pm
Posts: 1
Location: Richardson, TX
For discussion sake, assume there is an object called Preferences that has 20 attributes.

The way these attributes should be determined is to follow a value inheritance scheme whereby duplicate definitions for an attribute are won by the most specific definition.

For instance, there may be 3 different data sets that must be considered to determine a Preference object's state, and each data set would need to be independently configured:

1. Initialize the object with the system default settings (for all users).
2. Process any preference overrides for the user's role/organization/etc.
3. Load the user's specific preferences.

Assuming level 1 is fully defined, values in subsequent (more specific) levels would override the (less specific) value if they were defined. If the more specific level had no opinion (null, etc.), the less specific value would stand.

Is there any way to model this type of structure with Hibernate?


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.