1 | dataSource { |
---|
2 | pooled = true |
---|
3 | driverClassName = "org.hsqldb.jdbcDriver" |
---|
4 | username = "sa" |
---|
5 | password = "" |
---|
6 | } |
---|
7 | hibernate { |
---|
8 | cache.use_second_level_cache = true |
---|
9 | cache.use_query_cache = true |
---|
10 | cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider' |
---|
11 | } |
---|
12 | // environment specific settings |
---|
13 | environments { |
---|
14 | development { |
---|
15 | dataSource { |
---|
16 | // by default we use an in memory development database |
---|
17 | dbCreate = "create-drop" // one of 'create', 'create-drop','update' |
---|
18 | url = "jdbc:hsqldb:mem:devDB" |
---|
19 | //loggingSql = true |
---|
20 | } |
---|
21 | } |
---|
22 | ci { |
---|
23 | // used by build script |
---|
24 | dataSource { |
---|
25 | dbCreate = "update" |
---|
26 | username = "gscf" |
---|
27 | password = "dbnp" |
---|
28 | |
---|
29 | // PostgreSQL |
---|
30 | driverClassName = "org.postgresql.Driver" |
---|
31 | url = "jdbc:postgresql://localhost:5432/gscf-ci" |
---|
32 | dialect = org.hibernate.dialect.PostgreSQLDialect |
---|
33 | //logSql = true // enable logging while not yet final |
---|
34 | } |
---|
35 | } |
---|
36 | test { |
---|
37 | dataSource { |
---|
38 | dbCreate = "update" |
---|
39 | username = "gscf" |
---|
40 | password = "dbnp" |
---|
41 | |
---|
42 | // PostgreSQL |
---|
43 | driverClassName = "org.postgresql.Driver" |
---|
44 | url = "jdbc:postgresql://localhost:5432/gscf-test" |
---|
45 | dialect = org.hibernate.dialect.PostgreSQLDialect |
---|
46 | //logSql = true // enable logging while not yet final |
---|
47 | } |
---|
48 | } |
---|
49 | nbx14 { |
---|
50 | dataSource { |
---|
51 | dbCreate = "update" |
---|
52 | username = "gscf" |
---|
53 | password = "dbnp" |
---|
54 | |
---|
55 | // PostgreSQL |
---|
56 | driverClassName = "org.postgresql.Driver" |
---|
57 | url = "jdbc:postgresql://localhost:5432/gscf-nbx14" |
---|
58 | dialect = org.hibernate.dialect.PostgreSQLDialect |
---|
59 | //logSql = true // enable logging while not yet final |
---|
60 | } |
---|
61 | } |
---|
62 | production { |
---|
63 | dataSource { |
---|
64 | dbCreate = "update" |
---|
65 | username = "gscf" |
---|
66 | password = "dbnp" |
---|
67 | |
---|
68 | // PostgreSQL |
---|
69 | driverClassName = "org.postgresql.Driver" |
---|
70 | url = "jdbc:postgresql://localhost:5432/gscf-www" |
---|
71 | dialect = org.hibernate.dialect.PostgreSQLDialect |
---|
72 | //logSql = true // enable logging while not yet final |
---|
73 | } |
---|
74 | } |
---|
75 | www { |
---|
76 | // used by build script |
---|
77 | dataSource { |
---|
78 | dbCreate = "update" |
---|
79 | username = "gscf" |
---|
80 | password = "dbnp" |
---|
81 | |
---|
82 | // PostgreSQL |
---|
83 | driverClassName = "org.postgresql.Driver" |
---|
84 | url = "jdbc:postgresql://localhost:5432/gscf-www" |
---|
85 | dialect = org.hibernate.dialect.PostgreSQLDialect |
---|
86 | //logSql = true // enable logging while not yet final |
---|
87 | } |
---|
88 | } |
---|
89 | } |
---|