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: Is it possible to delete a row from scrollableresult?
PostPosted: Tue Feb 15, 2011 7:05 pm 
Newbie

Joined: Thu Jun 01, 2006 2:15 am
Posts: 7
Hi Forum,

I have a big table need to go though and process timeout, if it's timeout, I want to delete. I'm using scrollable result to process data, but scrollable result do not support remove, so I delete object from session. But now I'm getting exception:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

My understand is: this is because delete data is not tough result set on scrollable. So, I'm wandering if there is a way to delete row from scrollable result just like Iterator?

Thanks

Noodle


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.