Hi,
I know using second level cache for a specific class requires setting the cache startegy in the mapping file, e.g.:
Code:
<class name="eg.Immutable" mutable="false">
<cache usage="read-only"/>
....
</class>
another option to do it is in <class-cache> and <collection-cache> elements in hibernate.cfg.xml.
the question: what if I want this class to be cahced only in a specific process? A restriction: All the processes use the same mapping files! How can I control the use of second level cache in runtime?
Hibernate version: 3.1
Thanks,
Moshe.