File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
grails-resources/src/grails/grails-app/conf Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ grails.exceptionresolver.params.exclude = ['password']
8383// configure auto-caching of queries by default (if false you can cache individual queries with 'cache: true')
8484grails. hibernate. cache. queries = false
8585
86+ // configure passing transaction's read-only attribute to Hibernate session, queries and criterias
87+ // set "singleSession = false" OSIV mode in hibernate configuration after enabling
88+ grails. hibernate. pass. readonly = false
89+ // configure passing read-only to OSIV session by default, requires "singleSession = false" OSIV mode
90+ grails. hibernate. osiv. readonly = false
91+
8692environments {
8793 development {
8894 grails. logging. jul. usebridge = true
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ hibernate {
1010 cache. use_query_cache = false
1111 cache. region. factory_class = ' net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3
1212// cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
13+ singleSession = true // configure OSIV singleSession mode
1314}
1415
1516// environment specific settings
You can’t perform that action at this time.
0 commit comments