-->
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: How to keep indexes up to date when deleting from list?
PostPosted: Fri Oct 16, 2009 9:14 am 
Newbie

Joined: Fri Aug 14, 2009 8:06 am
Posts: 19
Hi,

I have an entity that maps a list. Everything runs fine until I remove an element from the middle of the list, then the indices are interrupted, i.e. they are not updated to their new values even though I call a saveOrUpdate() on all the elements of the changed list. The getIndex() method returns the correct value since it returns the index of the element in the in memory list.

Now, when I reload the list, there where the index is missing I get null values, not exactly what I want.

Does anyone have any experience with this?

I'm using hsqldb 1.8.1.1 with Hibernate 3.3.2

Hope someone can help me with this.

Thanks in advance,
Stef Kuypers


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.