Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2013 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4576220 to your computer and use it in GitHub Desktop.
Save anonymous/4576220 to your computer and use it in GitHub Desktop.
dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
username = "username"
password = "password"
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
development {
dataSource {
dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:mysql://localhost/taxiws"
}
}
test {
dataSource {
dbCreate = "create-drop"
url = "jdbc:mysql://localhost/taxiws"
}
}
production {
dataSource {
dbCreate = "update"
url = "jdbc:mysql://localhost:3307/buscame?autoReconnect=true"
pooled = true
properties {
maxActive = -1
minEvictableIdleTimeMillis=1800000
timeBetweenEvictionRunsMillis=1800000
numTestsPerEvictionRun=3
testOnBorrow=true
testWhileIdle=true
testOnReturn=true
validationQuery="SELECT 1"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment