Ehcache Settings for Domain Objects

Hibernate bases the names of Domain Object caches on the fully qualified name of Domain Objects. So, for example, a cache for com.somecompany.someproject.domain.Country would be represented by a cache configuration entry in ehcache.xml similar to the following:

<?xml version="1.0" encoding="UTF-8"?> 
<ehcache> 
 <cache 
    name="com.somecompany.someproject.domain.Country" 
    maxEntriesLocalHeap="10000" 
    eternal="false" 
    timeToIdleSeconds="300" 
    timeToLiveSeconds="600" 
    <persistence strategy="localTempSwap"/> 
 /> 
</ehcache>

Hibernate CacheConcurrencyStrategy for Domain Objects

The read-write, nonstrict-read-write and read-only policies apply to Domain Objects.