-->
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: idbag and adding an element at position 0
PostPosted: Thu Jul 09, 2009 4:26 am 
Newbie

Joined: Wed Apr 25, 2007 8:23 am
Posts: 8
Hello,

I have a great problem:

Master-detail-data is mapped as an idbag (lazy, with order-by-clause)

Reading a master with some detail elements is no problem.
Afterwards one detail element is modified,
and one new element is added AT POSITION 0 !! -> coll.add(0, newElem);

After saving (master) some of the detail elements are missing in the database.
Only two are left there, the new element and a some mix of the the others.

When adding at the end of the list everything is fine. -> coll.add(newElem);

Is this a hibernate bug ? What can I do ?

By,
Norbert


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.