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.