Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pooled = true
- dbCreate = "update"
- url = "jdbc:mysql://localhost/dev"
- driverClassName = "com.mysql.jdbc.Driver"
- dialect = org.hibernate.dialect.MySQL5InnoDBDialect
- username = ""
- password = ""
- properties {
- maxActive = 50
- maxIdle = 25
- minIdle = 5
- initialSize = 5
- minEvictableIdleTimeMillis = 60000
- timeBetweenEvictionRunsMillis = 60000
- maxWait = 10000
- validationQuery = "/* ping */"
- }
- hibernate {
- cache.use_second_level_cache = true
- cache.use_query_cache = true
- cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
- }
- // environment specific settings
- environments {
- development {
- dataSource {
- dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
- url = "jdbc:mysql://localhost/development"
- }
- }
- test {
- dataSource {
- dbCreate = "update"
- url = "jdbc:h2:mem:testDb;MVCC=TRUE"
- }
- }
- production {
- dataSource {
- dbCreate = "update"
- url = "jdbc:mysql://localhost/production"
- }
- }
- }
Add Comment
Please, Sign In to add comment