Ehcache 2.10.5 | Related Documentation | Integrations | Using Ehcache with Hibernate | Configuring ehcache.xml Settings | Ehcache Settings for Domain Objects
 
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.

Copyright © 2010-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release