From f389952a9dff9b35def4fe309822143cbb26f82f Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 10 Dec 2021 20:47:59 +0100 Subject: [PATCH] add ability to run tests locally on mysql --- databases/mysql/matrix.gradle | 7 +++++ .../mysql/resources/hibernate.properties | 26 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 databases/mysql/matrix.gradle create mode 100644 databases/mysql/resources/hibernate.properties diff --git a/databases/mysql/matrix.gradle b/databases/mysql/matrix.gradle new file mode 100644 index 0000000000..5fb4ffd93a --- /dev/null +++ b/databases/mysql/matrix.gradle @@ -0,0 +1,7 @@ +/* + * 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 . + */ +jdbcDependency 'mysql:mysql-connector-java:8.0.27' diff --git a/databases/mysql/resources/hibernate.properties b/databases/mysql/resources/hibernate.properties new file mode 100644 index 0000000000..2083e7f07a --- /dev/null +++ b/databases/mysql/resources/hibernate.properties @@ -0,0 +1,26 @@ +# +# 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 . +# + +hibernate.dialect org.hibernate.dialect.MySQLDialect +hibernate.connection.driver_class com.mysql.cj.jdbc.Driver +hibernate.connection.url jdbc:mysql://localhost/hibernate_orm_test +hibernate.connection.username hibernateormtest +hibernate.connection.password hibernateormtest + +hibernate.connection.pool_size 5 + +hibernate.show_sql false +hibernate.format_sql true + +hibernate.max_fetch_depth 5 + +hibernate.cache.region_prefix hibernate.test +hibernate.cache.region.factory_class org.hibernate.testing.cache.CachingRegionFactory + +javax.persistence.validation.mode=NONE +hibernate.service.allow_crawling=false +hibernate.session.events.log=true \ No newline at end of file