-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: overriding EhCacheRegionFactory
PostPosted: Wed Oct 23, 2013 10:47 am 
Newbie

Joined: Wed Apr 23, 2008 11:11 pm
Posts: 19
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.