-->
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: multiple collections in a single table
PostPosted: Fri Apr 29, 2005 11:36 pm 
Newbie

Joined: Fri Apr 29, 2005 8:29 pm
Posts: 1
Hi,

I have a class like

public class EligibilityRules {

long id;

Set certifications; // set of name value pairs

Set specializations; // set of name value pairs

Set authorizations; // set of name value pairs

...
...
// 10 more collections like the above

}

The straight-forward way is to map each collection to a separate physical table. However, there can be potentially more and more. Is there any way of mapping all the collections to the same table with a composite key made of id and some text representing the field ? What would the mapping look like ? Any ideas of how this can be done ?

Thanks,
ramky


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.