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?
|