Hello,
i am using EhCahce (org.hibernate.cache.EhCacheProvider) as a second level cache and i configured caching using custom ehcache.xml file.
As my application can operate in 2 modes, one entity should be cached in "write" mode and should NOT be cached id "read-only" mode.
I want that MyEntity.hbm.xml is same in both cases but the ehcahe.xml configuration is different. In the "write" mode, everything works fine, but how can i configure through ehcache.xml, that MyEntity is not cached?
I tried to remoe it from ehcache.xml but EhCacheProvider takes the dafault for this entity.
Thank you very much for any hint.
Lubos
Hibernate version: 3.2.3.ga
Mapping documents: MyEntity.hbm.xml <hibernate-mapping package="..."> <class name="MyEntity" table="..." schema="..." abstract="false" lazy="true"> <cache usage="read-write" /> ... </hibernate-mapping package>
Name and version of the database you are using:Oracle 10 g
|