Hi,
Using Hibernate 3.6.10
We have integrated our legacy system that uses ehcache explicitly with Hibernate. In particular, we have to be able to intercept any get operation on the cache
To do that, I had to extend from EhCacheRegionFactory and in particular the method "buildEntityRegion" to provide a different region that uses the necessary callback to our system.
It's working fine with the deprecated EhCacheRegionFactory but if I switch to the org.hibernate version, this method is final as all methods in DelegatingRegionFactory are final.
Is there a way to workaround this issue or intercept get calls to the cache in a different way?
Thanks, S.
|