daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jun 30th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pooled = true
  2.     dbCreate = "update"
  3.     url = "jdbc:mysql://localhost/dev"
  4.     driverClassName = "com.mysql.jdbc.Driver"
  5.     dialect = org.hibernate.dialect.MySQL5InnoDBDialect
  6.     username = ""
  7.     password = ""
  8.     properties {
  9.         maxActive = 50
  10.         maxIdle = 25
  11.         minIdle = 5
  12.         initialSize = 5
  13.         minEvictableIdleTimeMillis = 60000
  14.         timeBetweenEvictionRunsMillis = 60000
  15.         maxWait = 10000
  16.         validationQuery = "/* ping */"
  17.     }
  18.  
  19. hibernate {
  20.     cache.use_second_level_cache = true
  21.     cache.use_query_cache = true
  22.     cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
  23. }
  24. // environment specific settings
  25. environments {
  26.     development {
  27.         dataSource {
  28.             dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
  29.             url = "jdbc:mysql://localhost/development"
  30.         }
  31.     }
  32.     test {
  33.         dataSource {
  34.             dbCreate = "update"
  35.             url = "jdbc:h2:mem:testDb;MVCC=TRUE"
  36.         }
  37.     }
  38.     production {
  39.         dataSource {
  40.             dbCreate = "update"
  41.             url = "jdbc:mysql://localhost/production"
  42.         }
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top