-->
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.  [ 2 posts ] 
Author Message
 Post subject: nhibernate(ICriteria) not picking up manually changed data
PostPosted: Thu Sep 25, 2008 11:24 am 
Newbie

Joined: Wed Sep 24, 2008 7:28 pm
Posts: 2
Iam uisng nhibernate(ICriteria) to retrieve data from repository table.
But when im changing the data in the table it is giving me sometimes the old data or the newly changed data.
I bet somehow it is still hitting the cache, but i have set lazy = false for that table in the mapping file and also commented out the second level cache properties.

Urgent Help needed.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 25, 2008 11:44 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Is it possible that the objects are still in the session (aka 1st level cache) ? It so try the clear the session first.

_________________
--Wolfgang


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.