-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDataSource.groovy.properties
41 lines (40 loc) · 1.37 KB
/
DataSource.groovy.properties
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
dataSource {
pooled = true
driverClassName = "org.hsqldb.jdbcDriver"
username = "sa"
password = ""
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
development {
dataSource {
// url = "jdbc:hsqldb:mem:devDB"
// dbCreate = "create-drop"
driverClassName = "com.informix.jdbc.IfxDriver"
url = "jdbc:informix-sqli://@database.server@:@database.port@/tcs_catalog:[email protected]@;DB_LOCALE=en_us.utf8"
username = "@database.username@"
password = "@database.password@"
}
}
test {
dataSource {
// Please DONOT change the data source for test environment because the review table in production database has
// many foreign keys
dbCreate = "create-drop"
url = "jdbc:hsqldb:mem:testDb"
}
}
production {
dataSource {
driverClassName = "com.informix.jdbc.IfxDriver"
url = "jdbc:informix-sqli://@database.server@:@database.port@/tcs_catalog:[email protected]@;DB_LOCALE=en_us.utf8"
username = "@database.username@"
password = "@database.password@"
}
}
}