Hibernate does not evict query cache (non repeatable read issue)
问题 I am a new to java/spring/hibernate and really felt in love in java after several years of .Net programming. now I am working on web app using Spring (MVC, declarative transactions) and Hibernate (3.6, as cache provier - ehCache 2.5). I've got some read only and read-write enitties that I would like to cache using Hibernate second cache and query cache. everything was alright when I used caching for read only entities. I added read-write entity and ran performance tests using jMeter. For read