-->
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: How to force Hibernate use Object API of EhCache
PostPosted: Thu Dec 10, 2009 5:02 am 
Newbie

Joined: Thu Dec 10, 2009 4:45 am
Posts: 1
Hi,

I would like to change the default behavior of Hibernate which stores objects in a second-level cache(I configured it to use net.sf.ehcache.hibernate.EhCacheProvider) as a list of serializable attributes rather than plain objects. This results in unnecessary(for my specific purposes) instance creation each time I use Session.get() for the object state already in cache. How can I avoid this situation by telling Hibernate to store original objects in cache instead of serialized set of attributes?

Thanks,
Ilya

P.S.: On EhCache site I found the information below which doesn't help me much since it doesn't say what needs to be done to force Hibernate into using Object API of the EHCache:-(

Quote:
Tested with Hibernate2.1.8 and Hibernate3.1.3, which can utilise all of the new features except for Object API and multiple session factories each using a different Ehcache CacheManager.
A new net.sf.ehcache.hibernate.EhCacheProvider makes those additional features available to Hibernate-3.1.3. A version of the new provider should make it into the Hibernate3.2 release.


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.