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?
|