Skip to content

Commit d8a1091

Browse files
committed
use org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory for hibernate.cache.region.factory_class
- see grails-plugins/grails-hibernate4-plugin@6a069ed for details
1 parent a950e52 commit d8a1091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-resources/src/grails/grails-app/conf/DataSource.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dataSource {
88
hibernate {
99
cache.use_second_level_cache = true
1010
cache.use_query_cache = false
11-
// cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3
12-
cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
11+
// cache.region.factory_class = 'org.hibernate.cache.SingletonEhCacheRegionFactory' // Hibernate 3
12+
cache.region.factory_class = 'org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory' // Hibernate 4
1313
singleSession = true // configure OSIV singleSession mode
1414
flush.mode = 'manual' // OSIV session flush mode outside of transactional context
1515
}

0 commit comments

Comments
 (0)