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: Updating an entity from an iteration within the same Session
PostPosted: Mon Apr 11, 2005 3:29 pm 
Newbie

Joined: Tue Apr 05, 2005 11:31 pm
Posts: 3
Hello,
I have been using the Hibernate Iteration functionality in order to scroll (only forward) a given query. I use this to paginate, so I have to leave the Session open once it keeps the Result Set open.
There is a specific situation where I need to get and object loaded in this session, making a couple changes and send it to be updated within the same Session. I have been doing this and have got no errors from Hibernate, although it is not saving the changes in the database, and even more weird, if I try to execute a select query from my SqlServer Query Analyzer, the tables related to the "change" are locked, the query never returns unless I close the open session.
Does anyone have any idea of what I might be doing wrong?

Hibernate version:
Hibernate 3.0

Name and version of the database you are using:
SqlServer 2000

Thanks in advance for any hint!


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.