From 652726f7438cbc7966eba1f4e4f5c0f35b1aa5ff Mon Sep 17 00:00:00 2001 From: Barzilai Spinak Date: Fri, 17 Mar 2017 18:47:40 -0300 Subject: [PATCH] Adding module db-mssql for Microsoft SQL Server using Microsoft's open source driver, mssql-jdbc --- libraries.gradle | 1 + modules/db-mssql/build.gradle | 6 +++++ .../META-INF/q2/installs/cfg/db.properties | 26 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 modules/db-mssql/build.gradle create mode 100644 modules/db-mssql/src/main/resources/META-INF/q2/installs/cfg/db.properties diff --git a/libraries.gradle b/libraries.gradle index 4c04b22cee..38e09c4a30 100644 --- a/libraries.gradle +++ b/libraries.gradle @@ -47,6 +47,7 @@ ext { jdbcH2: 'com.h2database:h2:1.4.189', jdbcMysql: 'mysql:mysql-connector-java:5.1.36', jdbcPostgresql: 'org.postgresql:postgresql:9.4-1202-jdbc42', + jdbcMssql: 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8', //Freemarker freemarker: 'org.freemarker:freemarker:[2.3.20,2.4)', diff --git a/modules/db-mssql/build.gradle b/modules/db-mssql/build.gradle new file mode 100644 index 0000000000..f1c0977d31 --- /dev/null +++ b/modules/db-mssql/build.gradle @@ -0,0 +1,6 @@ +description = 'jPOS-EE :: PostgreSQL support' + +dependencies { + compile project(':modules:dbsupport') + compile libraries.jdbcMssql +} diff --git a/modules/db-mssql/src/main/resources/META-INF/q2/installs/cfg/db.properties b/modules/db-mssql/src/main/resources/META-INF/q2/installs/cfg/db.properties new file mode 100644 index 0000000000..ae0ebf3eec --- /dev/null +++ b/modules/db-mssql/src/main/resources/META-INF/q2/installs/cfg/db.properties @@ -0,0 +1,26 @@ +# +# jPOS Project [http://jpos.org] +# Copyright (C) 2000-2017 jPOS Software SRL +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# + +hibernate.connection.username=sa +hibernate.connection.password=password +# hibernate.hbm2ddl.auto=validate +# +hibernate.connection.url=jdbc:sqlserver://localhost:1433;databaseName=jposee +hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver +hibernate.dialect=org.hibernate.dialect.SQLServerDialect +#