gorm - Grails Hibernate - how to keep data in hibernate cache still my grails application restarted -
i created new simple project. i created book domain , mentioned cache=true in mapping. i setting info bootstrap.groovy configuration. i added print statements in bootstrap.groovy check info added or not. i set hibernate sec level cache true. i run application, printed in console "added many records". but date not showing in grid. i tried postgressql, same data. grid showing records. alter in datasource.groovy only.
please help me, missing
my default hibernate configuration in datasource.groovy
datasource { pooled = true jmxexport = true driverclassname = "org.h2.driver" username = "sa" password = "" } hibernate { cache.use_second_level_cache = true cache.use_query_cache = false cache.region.factory_class = 'net.sf.ehcache.hibernate.ehcacheregionfactory' // hibernate 3 // cache.region.factory_class = 'org.hibernate.cache.ehcache.ehcacheregionfactory' // hibernate 4 singlesession = true // configure osiv singlesession mode } in other words, how maintain info in hibernate cache still grails application restarted. ** **
grails gorm grails-2.0 grails-domain-class
No comments:
Post a Comment