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 {
|
2018-01-17 04:12:07 -05:00
|
|
|
db = project.hasProperty('db') ? project.getProperty('db') : 'h2'
|
2016-03-15 12:23:53 -04:00
|
|
|
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'
|
|
|
|
],
|
2016-05-19 01:47:49 -04:00
|
|
|
derby : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.DerbyTenSevenDialect',
|
|
|
|
'jdbc.driver': 'org.apache.derby.jdbc.EmbeddedDriver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:derby:target/tmp/derby/hibernate_orm_test;databaseName=hibernate_orm_test;create=true'
|
|
|
|
],
|
2016-03-15 12:23:53 -04:00
|
|
|
pgsql : [
|
2016-06-08 08:52:51 -04:00
|
|
|
'db.dialect' : 'org.hibernate.dialect.PostgreSQL95Dialect',
|
2016-03-15 12:23:53 -04:00
|
|
|
'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
|
|
|
],
|
2017-09-20 12:02:03 -04:00
|
|
|
pgsql_docker : [
|
2019-01-14 07:23:31 -05:00
|
|
|
'db.dialect' : 'org.hibernate.dialect.PostgreSQL10Dialect',
|
2017-09-20 12:02:03 -04:00
|
|
|
'jdbc.driver': 'org.postgresql.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
|
|
|
'jdbc.url' : 'jdbc:postgresql://127.0.0.1/hibernate_orm_test'
|
|
|
|
],
|
2016-03-16 10:01:11 -04:00
|
|
|
mysql : [
|
2017-02-09 08:14:30 -05:00
|
|
|
'db.dialect' : 'org.hibernate.dialect.MySQL57Dialect',
|
2016-03-16 10:01:11 -04:00
|
|
|
'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
|
|
|
],
|
2017-09-11 02:57:09 -04:00
|
|
|
mysql_docker : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.MySQL57Dialect',
|
|
|
|
'jdbc.driver': 'com.mysql.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
2018-05-10 07:04:12 -04:00
|
|
|
'jdbc.url' : 'jdbc:mysql://127.0.0.1/hibernate_orm_test?useSSL=false'
|
2017-09-11 02:57:09 -04:00
|
|
|
],
|
2016-03-29 12:04:48 -04:00
|
|
|
mariadb : [
|
2019-01-25 03:48:59 -05:00
|
|
|
'db.dialect' : 'org.hibernate.dialect.MariaDB103Dialect',
|
2016-03-29 12:04:48 -04:00
|
|
|
'jdbc.driver': 'org.mariadb.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'hibernate_orm_test',
|
|
|
|
'jdbc.pass' : 'hibernate_orm_test',
|
2017-02-08 06:08:02 -05:00
|
|
|
'jdbc.url' : 'jdbc:mariadb://127.0.0.1/hibernate_orm_test'
|
2016-04-17 09:58:15 -04:00
|
|
|
],
|
|
|
|
postgis : [
|
2017-05-23 09:10:00 -04:00
|
|
|
'db.dialect' : 'org.hibernate.spatial.dialect.postgis.PostgisPG95Dialect',
|
2016-04-17 09:58:15 -04:00
|
|
|
'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',
|
2016-04-14 06:04:32 -04:00
|
|
|
'jdbc.url' : 'jdbc:sqlserver://localhost;instance=SQLEXPRESS;databaseName=hibernate_orm_test'
|
2016-06-14 03:29:27 -04:00
|
|
|
],
|
|
|
|
informix : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.InformixDialect',
|
|
|
|
'jdbc.driver': 'com.informix.jdbc.IfxDriver',
|
|
|
|
'jdbc.user' : 'informix',
|
|
|
|
'jdbc.pass' : 'in4mix',
|
2017-09-18 08:53:35 -04:00
|
|
|
'jdbc.url' : 'jdbc:informix-sqli://127.0.0.1:9088/sysuser:INFORMIXSERVER=dev;user=informix;password=in4mix'
|
2017-05-08 04:56:35 -04:00
|
|
|
],
|
|
|
|
db2 : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.DB2Dialect',
|
|
|
|
'jdbc.driver': 'com.ibm.db2.jcc.DB2Driver',
|
|
|
|
'jdbc.user' : 'db2inst1',
|
|
|
|
'jdbc.pass' : 'db2inst1-pwd',
|
|
|
|
'jdbc.url' : 'jdbc:db2://127.0.0.1:50000/hibern8'
|
2017-09-14 06:03:41 -04:00
|
|
|
],
|
|
|
|
hana : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.HANAColumnStoreDialect',
|
|
|
|
'jdbc.driver': 'com.sap.db.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'HIBERNATE_TEST',
|
|
|
|
'jdbc.pass' : 'H1bernate_test',
|
|
|
|
'jdbc.url' : 'jdbc:sap://localhost:30015/'
|
2018-01-22 08:32:48 -05:00
|
|
|
],
|
2020-03-27 12:08:28 -04:00
|
|
|
hana_cloud : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.HANACloudColumnStoreDialect',
|
|
|
|
'jdbc.driver': 'com.sap.db.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'HIBERNATE_TEST',
|
|
|
|
'jdbc.pass' : 'H1bernate_test',
|
|
|
|
'jdbc.url' : 'jdbc:sap://localhost:443/?encrypt=true&validateCertificate=false'
|
|
|
|
],
|
2018-01-22 08:32:48 -05:00
|
|
|
hana_vlad : [
|
|
|
|
'db.dialect' : 'org.hibernate.dialect.HANAColumnStoreDialect',
|
|
|
|
'jdbc.driver': 'com.sap.db.jdbc.Driver',
|
|
|
|
'jdbc.user' : 'VLAD',
|
|
|
|
'jdbc.pass' : 'V1ad_test',
|
|
|
|
'jdbc.url' : 'jdbc:sap://localhost:39015/'
|
2016-04-24 23:44:04 -04:00
|
|
|
]
|
2016-03-15 12:23:53 -04:00
|
|
|
]
|
|
|
|
}
|