Created
October 11, 2017 07:11
-
-
Save yohanesgultom/270f603080477f4071c92224230d648a to your computer and use it in GitHub Desktop.
Random groovy scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Random groovy scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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