/
DataSource.groovy
47 lines (47 loc) · 1.26 KB
/
DataSource.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dataSource {
pooled = true
driverClassName = "org.hsqldb.jdbcDriver"
url = "jdbc:hsqldb:mem:devDB" // For use with the HSQL in-mem db
username = "sa"
password = ""
}
hibernate {
cache.use_second_level_cache=true
cache.use_query_cache=true
cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'
}
// environment specific settings
environments {
development {
dataSource {
dbCreate = "create-drop" // one of 'create', 'create-drop','update'
// url = "jdbc:h2:mem:DevDB"
driverClassName = "org.h2.Driver"
url = "jdbc:h2:./db/test"
//Uncomment for using the Network-mode Derby client.
/*
pooled = false
driverClassName = "org.apache.derby.jdbc.ClientDriver"
username = ""
password = ""
url = "jdbc:derby://localhost:1527/DepMgmt"
dialect = "org.hibernate.dialect.DerbyDialect"
*/
}
}
test {
dataSource {
dbCreate = "update"
url = "jdbc:h2:file:./db/test"
driverClassName = "org.h2.Driver"
}
}
production {
dataSource {
dbCreate = "update"
url = "jdbc:oracle:thin:@ta04:1521:ta04"
username = "eai"
password = "eai"
}
}
}