-->
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: Query Cache not being invalidated on update
PostPosted: Mon Apr 12, 2010 5:54 pm 
Newbie

Joined: Fri Apr 09, 2010 1:24 pm
Posts: 3
When updating an Entity, Hibernate 3.5 is not invalidating caches for queries that use that entity.

For example:
1. Run a query that returns the last name of all users.
2. Change the last name of a user.
3. Run the query again.

In Hibernate 3.3.2 this would work, the query would return the updated last name, but in Hibernate 3.5 it is not working. The second run of the query is returning the same results as the first run. In both cases (Hibernate 3.3.2 or 3.5) we are using Ehcache 2.0.1. Any ideas on what I can do to make it work in Hibernate 3.5?


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.