2016-03-15 12:23:53 -04:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
|
|
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// build a map of the database settings to use.
|
|
|
|
ext {
|
|
|
|
db = 'h2'
|
|
|
|
dbBundle = [
|
|
|
|
h2 : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.H2Dialect',
|
|
|
|
'jdbc.driver': 'org.h2.Driver',
|
|
|
|
'jdbc.user' : 'sa',
|
|
|
|
'jdbc.pass' : '',
|
|
|
|
'jdbc.url' : 'jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;LOCK_TIMEOUT=10000',
|
|
|
|
],
|
|
|
|
hsqldb : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.HSQLDialect',
|
|
|
|
'jdbc.driver': 'org.hsqldb.jdbc.JDBCDriver',
|
|
|
|
'jdbc.user' : 'sa',
|
|
|
|
'jdbc.pass' : '',
|
|
|
|
'jdbc.url' : 'jdbc:hsqldb:mem:test'
|
|
|
|
],
|
|
|
|
pgsql : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.PostgreSQL94Dialect',
|
|
|
|
'jdbc.driver': 'org.postgresql.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:postgresql:hibernate_orm_test'
|
2016-03-16 10:01:11 -04:00
|
|
|
],
|
|
|
|
mysql : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',
|
|
|
|
'jdbc.driver': 'com.mysql.jdbc.Driver',
|
2016-04-22 06:38:47 -04:00
|
|
|
'jdbc.user' : 'hibernateormtest',
|
|
|
|
'jdbc.pass' : 'hibernateormtest',
|
|
|
|
'jdbc.url' : 'jdbc:mysql://localhost/hibernate_orm_test'
|
2016-03-29 12:04:48 -04:00
|
|
|
],
|
|
|
|
mariadb : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',
|
|
|
|
'jdbc.driver': 'org.mariadb.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:mariadb://localhost/hibernate_orm_test'
|
2016-04-17 09:58:15 -04:00
|
|
|
],
|
|
|
|
postgis : [
|
|
|
|
'db.dialect' : 'org.hibernate.spatial.dialect.postgis.PostgisDialect',
|
|
|
|
'jdbc.driver': 'org.postgresql.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:postgresql:hibernate_orm_test'
|
|
|
|
],
|
2016-04-24 23:44:04 -04:00
|
|
|
oracle : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.Oracle10gDialect',
|
|
|
|
'jdbc.driver': 'oracle.jdbc.driver.OracleDriver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:oracle:thin:@localhost:1521/xe'
|
|
|
|
],
|
|
|
|
mssql : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.SQLServer2012Dialect',
|
|
|
|
'jdbc.driver': 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:sqlserver://localhost;instance=SQLEXPRESS;databaseName=hibernate_orm_test;user=sa;password=adm1n'
|
|
|
|
]
|
2016-03-15 12:23:53 -04:00
|
|
|
]
|
|
|
|
}
|