-->
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: Best way to store a collection of collections?
PostPosted: Sun Mar 09, 2008 11:01 pm 
Newbie

Joined: Wed Jan 09, 2008 11:30 pm
Posts: 9
Specifically, I need to store a map of Strings to Sets.

I've tried to wrap the Set with a custom type, that stores as a property, but the ID field doesn't work. (it doesn't exist in the original set, no surprise there)

I also tried writing a custom type (MapSetType.java) and abusing some static methods to manipulate rows in a separate table. This doesn't work because there is no sane way of setting the ID for the rows.

Could someone please suggest a better way of doing this?
Lay out some pseudo-code, and the matching xml mapping?


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.