expire « Cache « JPA Q&A





1. How can I expire all objects in the Hibernate cache?    forum.hibernate.org

In our application there is a separate non-java program that also inserts records in our database (in addition to our Java program). The result is that the Hibernate cache and the database are out of sync (and often Hibernate overwrites changed records). What is the best way to completely reset the Hibernate cache (both session and second-level)? I guess I'm looking ...

2. what causes "An item was expired by the cache while...&    forum.hibernate.org

I'm getting a bunch of WARN messages that look like: [ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout) I'm trying to figure out what is causing this. The only thing I can think of is that during a single session/transaction the following is occurring: 1. session opened 2. item fetched 3. item updated ...