[hibernate/hibernate-orm] d767d4: Fix most tests to work on all DBs and fix a bunch ...
by Christian Beikov
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: d767d46d05a9a1f754dca6be870bbf9f17bdb553
https://github.com/hibernate/hibernate-orm/commit/d767d46d05a9a1f754dca6b...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M .github/workflows/contributor-build.yml
M ci/build-github.sh
M ci/build-travis.sh
M ci/build.sh
M docker_db.sh
M documentation/src/test/java/org/hibernate/userguide/events/ListenerTest.java
M documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/NClobCharArrayTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/NClobStringTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/NClobTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/NationalizedTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/SubselectTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/TypeCategoryTest.java
M gradle/databases.gradle
M gradle/java-module.gradle
M hibernate-agroal/src/test/java/org/hibernate/test/agroal/util/PreparedStatementSpyConnectionProvider.java
M hibernate-c3p0/src/test/resources/hibernate.properties
M hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MariaDB103Dialect.java
M hibernate-core/src/main/java/org/hibernate/hql/spi/id/AbstractMultiTableBulkIdStrategyImpl.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/cascade/MergeTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/TreatKeywordTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/basic/PredicateTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/selectcase/GroupBySelectCaseTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/selectcase/SelectCaseLiteralHandlingBindTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/selectcase/SelectCaseTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/metamodel/Translation.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/query/QueryTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/schemagen/JpaSchemaGeneratorTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/FlushAndTransactionTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/batch/JtaWithFailingBatchTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/criteria/BasicCriteriaExecutionTests.java
M hibernate-core/src/test/java/org/hibernate/query/criteria/internal/expression/SearchedCaseExpressionTest.java
M hibernate-core/src/test/java/org/hibernate/query/hhh14156/HHH14156Test.java
M hibernate-core/src/test/java/org/hibernate/secure/JaccIntegratorTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/embeddables/collection/xml/EmbeddableWithOneToMany_HHH_11302_xml_Test.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/lob/hhh4635/LobTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java
M hibernate-core/src/test/java/org/hibernate/test/bulkid/GlobalTemporaryTableBulkCompositeIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/cascade/MergeTest.java
M hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/QueryTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/BeforeCompletionReleaseTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/ConnectionsReleaseAutoCommitTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/AndNationalizedTests.java
M hibernate-core/src/test/java/org/hibernate/test/criteria/InTest.java
M hibernate-core/src/test/java/org/hibernate/test/criterion/NationalizedIgnoreCaseTest.java
M hibernate-core/src/test/java/org/hibernate/test/dialect/functional/SQLServerDialectCollationTest.java
M hibernate-core/src/test/java/org/hibernate/test/dialect/functional/SQLServerDialectTempTableCollationTest.java
M hibernate-core/src/test/java/org/hibernate/test/fileimport/MultiLineImportFileTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/CoalesceTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/WithClauseTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/size/ManyToManySizeTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/size/OneToManySizeTest.java
M hibernate-core/src/test/java/org/hibernate/test/idgen/enhanced/sequence/HiLoSequenceMismatchStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/test/inheritance/TransientOverrideAsPersistentJoined.java
M hibernate-core/src/test/java/org/hibernate/test/inheritance/TransientOverrideAsPersistentTablePerClass.java
M hibernate-core/src/test/java/org/hibernate/test/jdbc/internal/BasicConnectionTest.java
M hibernate-core/src/test/java/org/hibernate/test/proxy/ProxyReferenceEqualityTest.java
M hibernate-core/src/test/java/org/hibernate/test/quote/TableGeneratorQuotingTest.java
M hibernate-core/src/test/java/org/hibernate/test/schematools/TestExtraPhysicalTableTypes.java
M hibernate-core/src/test/java/org/hibernate/test/schemaupdate/PostgreSQLMultipleSchemaSequenceTest.java
M hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaMigratorHaltOnErrorTest.java
M hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateHaltOnErrorTest.java
M hibernate-core/src/test/java/org/hibernate/test/schemavalidation/LongVarcharValidationTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/LocalDateCustomSessionLevelTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/type/AbstractJavaTimeTypeTest.java
M hibernate-core/src/test/java/org/hibernate/test/util/jdbc/PreparedStatementSpyConnectionProvider.java
M hibernate-core/src/test/resources/org/hibernate/query/hhh12225/Vehicle.hbm.xml
M hibernate-ehcache/src/test/java/org/hibernate/cache/ehcache/test/TestHelper.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/collection/StringMapLobTest.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/collection/StringMapNationalizedLobTest.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/tools/OrderSequenceGenerationTest.java
M hibernate-hikaricp/src/test/java/org/hibernate/test/util/PreparedStatementSpyConnectionProvider.java
M hibernate-jcache/src/test/java/org/hibernate/jcache/test/RefreshUpdatedDataTest.java
M hibernate-jcache/src/test/java/org/hibernate/jcache/test/TestHelper.java
M hibernate-testing/src/main/java/org/hibernate/testing/DialectChecks.java
M hibernate-testing/src/main/java/org/hibernate/testing/transaction/TransactionUtil.java
Log Message:
-----------
Fix most tests to work on all DBs and fix a bunch of connection leaks
Commit: 08d9fe1a3b37fc054b77336530511c7331cf075e
https://github.com/hibernate/hibernate-orm/commit/08d9fe1a3b37fc054b77336...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEnversTest.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/AbstractMySQLDatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/DB2DatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/DatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/DatabaseCleanerContext.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/H2DatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/JdbcConnectionContext.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/MariaDBDatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/MySQL5DatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/MySQL8DatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/OracleDatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/PostgreSQLDatabaseCleaner.java
A hibernate-testing/src/main/java/org/hibernate/testing/cleaner/SQLServerDatabaseCleaner.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseUnitTestCase.java
Log Message:
-----------
Add cleaners for clearing a schema the first time before running a test
Commit: 9135f69c91522d7594c846807b9563dd6db16543
https://github.com/hibernate/hibernate-orm/commit/9135f69c91522d7594c8468...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc
M hibernate-core/src/main/java/org/hibernate/hql/spi/id/IdTableHelper.java
M hibernate-core/src/main/java/org/hibernate/hql/spi/id/global/GlobalTemporaryTableBulkIdStrategy.java
M hibernate-core/src/main/java/org/hibernate/hql/spi/id/local/LocalTemporaryTableBulkIdStrategy.java
A hibernate-core/src/main/java/org/hibernate/hql/spi/id/local/PreparationContextImpl.java
Log Message:
-----------
HHH-14433 Add possibility to drop local temporary tables to enable connection pooling in tests
Commit: a8cddb93e8d0d814df72a14a6acdf6983b53044d
https://github.com/hibernate/hibernate-orm/commit/a8cddb93e8d0d814df72a14...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/DdlTransactionIsolatorNonJtaImpl.java
Log Message:
-----------
HHH-14434 Fix autocommit reset for connection used in DdlTransactionIsolatorNonJtaImpl
Commit: 62d727d44ed881cce47fe5881fda65a0d0d3bce1
https://github.com/hibernate/hibernate-orm/commit/62d727d44ed881cce47fe58...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-testing/src/main/java/org/hibernate/testing/jta/JtaAwareConnectionProviderImpl.java
Log Message:
-----------
Fix connection leak in connection provider used for JTA tests
Commit: 21c89240d068f279b7511384d7a3b71a52347fe5
https://github.com/hibernate/hibernate-orm/commit/21c89240d068f279b751138...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/relational/QualifiedTableName.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/InformationExtractorJdbcDatabaseMetaDataImpl.java
Log Message:
-----------
HHH-14435 Improve table information extraction (especially for Oracle with enableSynonyms)
Previously Oracle with enableSynonyms ran into a timeout on CI because the JDBC driver issues a rather expensive query. The new implementation issues a dummy query and uses the result set metadata as suggested in various online articles about schema introspection
Commit: 9f460e1c303ba974f38327a35e88545729aedc30
https://github.com/hibernate/hibernate-orm/commit/9f460e1c303ba974f38327a...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/jpa/boot/internal/EntityManagerFactoryBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/DdlTransactionIsolatorJtaImpl.java
Log Message:
-----------
HHH-14432 Implement cleanup for EntityManagerFactoryBuilderImpl to close connections on bootstrap errors
Commit: ffe45ccdd6fd0fdde1f685fe4075a7a3f2295c01
https://github.com/hibernate/hibernate-orm/commit/ffe45ccdd6fd0fdde1f685f...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
Log Message:
-----------
Register transaction coordinator as observer when session is waiting for auto close but coordinator is not shared
Commit: 709ac039d1e5d12372237951cadfcf4bc2feb590
https://github.com/hibernate/hibernate-orm/commit/709ac039d1e5d1237223795...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
R hibernate-core/src/main/java/org/hibernate/type/internal/TypeConfigurationRegistry.java
M hibernate-core/src/main/java/org/hibernate/type/spi/TypeConfiguration.java
Log Message:
-----------
Drop TypeConfigurationRegistry which was leaking session factories that had a bootstrap error
As far as I can tell, the purpose of TypeConfigurationRegistry was only for serialization, but since the TypeConfiguration UUID is always random, this won't work anyway.
Commit: 1983123d72d2f063685cc8543595b4f595032cb4
https://github.com/hibernate/hibernate-orm/commit/1983123d72d2f063685cc85...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionValidator.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/DriverManagerConnectionProviderImpl.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/BaseEntityManagerFunctionalTestCase.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/ejb3configuration/DisableDiscardPersistenceContextOnCloseTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/ejb3configuration/EnableDiscardPersistenceContextOnCloseTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/lock/LockTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/lock/StatementIsClosedAfterALockExceptionTest.java
M hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java
M hibernate-core/src/test/java/org/hibernate/test/insertordering/BaseInsertOrderingTest.java
M hibernate-core/src/test/java/org/hibernate/test/jdbc/internal/SessionJdbcBatchTest.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/lock/JPALockTest.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/lock/LockExceptionTests.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/lock/RepeatableReadTest.java
M hibernate-core/src/test/java/org/hibernate/test/querytimeout/QueryTimeOutTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimeCustomTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimeDefaultTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampCustomSessionLevelTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampCustomTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampDefaultTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampUTCTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampWithDefaultUTCTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/JdbcTimestampWithoutUTCTimeZoneTest.java
M hibernate-core/src/test/java/org/hibernate/test/unionsubclass/UnionSubclassTest.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/BaseEnversJPAFunctionalTestCase.java
M hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
A hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SharedDriverManagerConnectionProviderImpl.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Log Message:
-----------
Use a shared connection provider for most tests to reduce test time significantly
Commit: b3ab4c22997f01bbffb379887e8b001e217252b0
https://github.com/hibernate/hibernate-orm/commit/b3ab4c22997f01bbffb3798...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-02-03 (Wed, 03 Feb 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/DerbyTenSixDialect.java
M hibernate-core/src/test/java/org/hibernate/test/hql/size/ManyToManySizeTest2.java
M hibernate-core/src/test/java/org/hibernate/test/hql/size/OneToManySizeTest2.java
Log Message:
-----------
Fix newly added tests for derby
Compare: https://github.com/hibernate/hibernate-orm/compare/5d9f6936ff88...b3ab4c2...
3 years, 9 months