-->
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: stale results from query and batch updates
PostPosted: Sun Nov 12, 2006 7:25 am 
Newbie

Joined: Tue Nov 01, 2005 1:39 pm
Posts: 7
I'm using hibernate version 3.1
I've noticed that when inserting entity without flushing, I cannot get hibernate to return the new entity when running query for it (say by one of its properties). even in context of the same session in which it was persisted.
1) Am I doing something wrong?
2) I'm inserting this entities in my application in context of some very large scale update and would like to take advantage of batch updating. I've read in your batch updates section that you recommend performing a session.flush and session.clear every batch_size number of updates. This, therefore, will not work if my updates depend on previous updates (that is, previous entities I've persisted). So, how can use batching in my case?
3) Was there any change at this area in later hibernate versions?

thanks


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.