-->
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: an question about data synchronization to use query.iterator
PostPosted: Tue Mar 26, 2013 10:07 pm 
Newbie

Joined: Tue Mar 26, 2013 9:35 pm
Posts: 1
dc:
I open two session ,one use query.list to get a collection and the 2cd session use query.iterator get the 'id' collection on the basis of document(note:the entity set the version column), when my first session update something and saved I use 2cd session iterator to get the entity data ,when first session saved the entity data have been changed but the 2cd session's iterator get the entity is the previous and the SQL has been sent.
I want to know the database has been changed and hibernate tell us the iterator method only return the collections id,why i use the id get one entity is not currently?


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.