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.  [ 2 posts ] 
Author Message
 Post subject: Why is there no idlist collection?
PostPosted: Thu Oct 19, 2006 7:39 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
I'm stuck.

I have a many-to-many associative relationship with tables like this:

Students <-> StudentsClasses <-> Classes

My StudentsClasses table has columns for a surrogate key and an index column because the classes for a student are maintained in a certain order.

I can't use the <list...> or <bag...> collection because their many-to-many's don't support surrogate keys.

I can't use the <idbag...> collection because it doesn't support the index column for ordering the classes for each student.

What should I do?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 9:27 am 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
Anyone have any ideas? I looked at the source code and was going to add this myself.

My plan was to examine the differences between the PersistentBag and the PersistentIdentifierBag classes, and then apply those changes to the PersistentList class to make my own new PersistentIdentifierList class.

However the PersistentBag and the PersistentIdentifierBag classes are completely different. I don't know where to start.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.