-->
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: Manual sorting of a collection
PostPosted: Wed Mar 12, 2008 10:23 am 
Newbie

Joined: Wed Oct 17, 2007 4:59 pm
Posts: 8
Hi,
in my current project, I've got two entities Project and Function, where a project can have one or more functions (One-to-many).

It is important for us, that the user is able to bring all the functions in a specific order. The user could do this by Drag&Drop the functions by hand in a list. Normally I would add a column position within the functions table.

I thought hibernate is able to give me some help with such a problem. Do I have to handle the ordering by myself, or could I use f.e. SortedSet and hibernate saves and restores the structure automatically?

Thanks in advance,
fritz


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.