diff --git a/databases/.gitignore b/databases/.gitignore new file mode 100644 index 0000000000..f17ea91c47 --- /dev/null +++ b/databases/.gitignore @@ -0,0 +1,2 @@ +!mariadb/ +./ \ No newline at end of file diff --git a/databases/mariadb/matrix.gradle b/databases/mariadb/matrix.gradle new file mode 100644 index 0000000000..d2200410ec --- /dev/null +++ b/databases/mariadb/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 'org.mariadb.jdbc:mariadb-java-client:1.1.7' \ No newline at end of file diff --git a/databases/mariadb/resources/hibernate.properties b/databases/mariadb/resources/hibernate.properties new file mode 100644 index 0000000000..96c91ee4ee --- /dev/null +++ b/databases/mariadb/resources/hibernate.properties @@ -0,0 +1,29 @@ +# +# 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 = +hibernate.connection.driver_class org.mariadb.jdbc.Driver +hibernate.connection.url jdbc:mariadb://localhost/hibernate_orm_test +hibernate.connection.username hibernate_orm_test +hibernate.connection.password hibernate_orm_test + +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 + +# NOTE: hibernate.jdbc.batch_versioned_data should be set to false when testing with Oracle +hibernate.jdbc.batch_versioned_data true + +javax.persistence.validation.mode=NONE +hibernate.service.allow_crawling=false +hibernate.session.events.log=true \ No newline at end of file diff --git a/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorNoIncrementTest.java b/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorNoIncrementTest.java index e03a2f18e4..4b2d1b9b89 100644 --- a/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorNoIncrementTest.java +++ b/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorNoIncrementTest.java @@ -30,6 +30,8 @@ import org.hibernate.internal.SessionImpl; import org.hibernate.jdbc.Work; import org.hibernate.type.StandardBasicTypes; +import org.hibernate.testing.DialectChecks; +import org.hibernate.testing.RequiresDialectFeature; import org.hibernate.testing.env.TestingDatabaseInfo; import org.hibernate.testing.junit4.BaseUnitTestCase; import org.hibernate.testing.boot.BasicTestingJdbcServiceImpl; @@ -47,6 +49,7 @@ import static org.junit.Assert.assertEquals; * @author Steve Ebersole */ @SuppressWarnings({ "deprecation" }) +@RequiresDialectFeature( DialectChecks.SupportsSequences.class ) public class SequenceHiLoGeneratorNoIncrementTest extends BaseUnitTestCase { private static final String TEST_SEQUENCE = "test_sequence"; diff --git a/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorTest.java b/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorTest.java index 27959167c0..dc85953a81 100644 --- a/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorTest.java @@ -25,6 +25,8 @@ import org.hibernate.internal.SessionImpl; import org.hibernate.jdbc.Work; import org.hibernate.type.StandardBasicTypes; +import org.hibernate.testing.DialectChecks; +import org.hibernate.testing.RequiresDialectFeature; import org.hibernate.testing.junit4.BaseUnitTestCase; import org.hibernate.testing.boot.MetadataBuildingContextTestingImpl; import org.junit.After; @@ -40,6 +42,7 @@ import static org.junit.Assert.assertEquals; * @author Steve Ebersole */ @SuppressWarnings({ "deprecation" }) +@RequiresDialectFeature( DialectChecks.SupportsSequences.class ) public class SequenceHiLoGeneratorTest extends BaseUnitTestCase { private static final String TEST_SEQUENCE = "test_sequence";