dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
environments {
development {
dataSource {
dbCreate = "create"
username = "dev"
password = "devpw"
}
hibernate {
show_sql = true
}
}
test {
dataSource {
dbCreate = "create-drop"
username = "test"
password = "testpw"
}
}
production {
dataSource {
dbCreate = "update"
username = "prod"
password = "prodpw"
}
}
}
Libraries
mysql-connector-java-3.1.14-bin.jar