Skip to content

Instantly share code, notes, and snippets.

@yohanesgultom
Created October 11, 2017 07:11
Show Gist options
  • Save yohanesgultom/270f603080477f4071c92224230d648a to your computer and use it in GitHub Desktop.
Save yohanesgultom/270f603080477f4071c92224230d648a to your computer and use it in GitHub Desktop.
Random groovy scripts
Random groovy scripts
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 = 'grails.plugin.cache.ehcache.hibernate.BeanEhcacheRegionFactory4' // Hibernate 4
singleSession = true // configure OSIV singleSession mode
flush.mode = 'manual' // OSIV session flush mode outside of transactional context
}
dataSource {
pooled = true
driverClassName = "org.postgresql.Driver"
dialect = org.hibernate.dialect.PostgreSQLDialect
dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:postgresql://localhost:5432/pantaudb"
username = "postgres"
password = ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment