Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Created September 15, 2015 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/753ad18d01b23c97b351 to your computer and use it in GitHub Desktop.
Save kevinhooke/753ad18d01b23c97b351 to your computer and use it in GitHub Desktop.
Hibernate 3.3 second level cache config with ehcache
<property name="hibernate.cache.provider_class" value="net.sf.ehcache.hibernate.EhCacheProvider" />
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_second_level_cache" value="true" />
<!-- not used in this version 3.3 -->
<!-- <property name="hibernate.cache.provider_class" value="org.hibernate.cache.hibernate.EhCacheProvider" /> -->
<!-- <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment