-->
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: The order is not maintained while saving a collection
PostPosted: Mon Oct 19, 2009 11:27 am 
Newbie

Joined: Mon Oct 19, 2009 11:08 am
Posts: 3
I have a collection(LinkedHashMap) which has a one-to-many relationship. While i save the parent object, the collection is getting updated to the database correctly, but hibernate is saving in a different order otherthan in the collection.I have to show the collection in the same order, the order which it is saved back to the client side. I don't have a column for sorting. I added a date column to test. Looks like the collection is saving in a different order.Does anyone know why it is happening?


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.