cache « Version « JPA Q&A





1. Hibernate - clustered cache and updating class versions    stackoverflow.com

We use Ehcache as L2 cache for Hibernate in a cluster. Since we update servers one by one to avoid downtime, at some point it is possible that in the cluster ...

2. Clustered L2 cache and different entity class versions    forum.hibernate.org

We use Ehcache as L2 cache for Hibernate in a cluster. Since we update servers one by one to avoid downtime, at some point it is possible that in the cluster one server is running older version of code, and another the updated version. I thought the issue was Ehcache, but I narrowed it down to Hibernate. Hibernate does not cache ...

3. Caching vs. Versioning - either but not both?    forum.hibernate.org

I am using Hibernate 2.1.3 and have some strange behavior. Im doing a proof of concept for standardizing on Hibernate here at work, so any help would be greatly appreciated. It seems hibernate will not work if I use both a and tag in the same persistent base class. If I have caching enabled for the class, and the ...

4. Old version of object retrieved from cache    forum.hibernate.org

I'm having a caching problem. I update a record on one page, then access it on the next. When the record is accessed, the updates that were made are not present. I'm now trying to force a re-read from the database, but it's not working. Here's my code. Code: TrackingStep rootTracking = (TrackingStep)session.load( TrackingStep.class, rootTrackingID, LockMode.READ); When ...

5. Optimistic JBossCache and Entities with out a Version    forum.hibernate.org

Looking at the code in OptimisticTreeCache it appears that Hibernate tells JBossCache to use an entity's version column for the cache's optimistic check if it has one. However, if the entity doesn't have a version column it appears JBossCache doesn't do a version check of any kind when updating the cache. (Last update wins) So, theoretically if I am using OptimisticeTreeCache ...