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: caching data
PostPosted: Tue Jun 06, 2006 3:04 am 
Hello,

I have an issue with caching data in Hibernate. I have an existing applicationg which interacts with mySQL database and performs all operations with it. Now I'm developing a web console for this application which will also interact with this DB and also change data.

When I read data from the DB first time I get correct list of records. (I do this by createQuery("from table").list ). Next times I select records from the same table I get the same results though my application might have changed records and removed some of them.

I tried to disable caching by using NoCacheProvider. I tried to use transactional policy for this table in the mapping file. Without success.

Can someone help me?

hibernate3.2


Top
  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 6:02 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi,

Try to refresh the session. i.e session.refresh() and check whether you have all the values.

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


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.