[hibernate/hibernate-orm] 582faa: HHH-15082 Abort JDBC batches on runtime exceptions...
by Yoann Rodière
Branch: refs/heads/5.6
Home: https://github.com/hibernate/hibernate-orm
Commit: 582faaa2aca04e6f6563024c01e29f471a0e47cd
https://github.com/hibernate/hibernate-orm/commit/582faaa2aca04e6f6563024...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/NonBatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
Log Message:
-----------
HHH-15082 Abort JDBC batches on runtime exceptions as well as SQLException
Commit: 8f5c0b76103209c59a1ad4886f94e2820fb1ba40
https://github.com/hibernate/hibernate-orm/commit/8f5c0b76103209c59a1ad48...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/batch/FailingAddToBatchTest.java
Log Message:
-----------
HHH-15082 Test that batch statements are aborted if a RuntimeException is thrown by Batch#addToBatch
Such an exception can be thrown if an expectation
(org.hibernate.jdbc.Expectation) is not met, for example if an update
statement for a given entity affects 0 rows (e.g. because of a concurrent
update).
Commit: 5febc7013442c7cdc614a064a4e9a27f9524fc5b
https://github.com/hibernate/hibernate-orm/commit/5febc7013442c7cdc614a06...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/AbstractBatchImpl.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/NonBatchingBatch.java
Log Message:
-----------
HHH-15082 Correctly propagate the original exception when aborting a JDBC batch fails
Not strictly necessary, but it's related to these changes
and I think it's a good idea.
Compare: https://github.com/hibernate/hibernate-orm/compare/82815cc09a0c...5febc70...
2 years, 7 months
[hibernate/hibernate-orm] ec6cd5: HHH-15082 Abort JDBC batches on runtime exceptions...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: ec6cd5d0cc1cc0cb9f4e9c8616ce318eb34ebed1
https://github.com/hibernate/hibernate-orm/commit/ec6cd5d0cc1cc0cb9f4e9c8...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/NonBatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
Log Message:
-----------
HHH-15082 Abort JDBC batches on runtime exceptions as well as SQLException
Commit: 14c8fb752d27b1e8a4e70a7543857e806105b2c0
https://github.com/hibernate/hibernate-orm/commit/14c8fb752d27b1e8a4e70a7...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/transaction/batch/FailingAddToBatchTest.java
Log Message:
-----------
HHH-15082 Test that batch statements are aborted if a RuntimeException is thrown by Batch#addToBatch
Such an exception can be thrown if an expectation
(org.hibernate.jdbc.Expectation) is not met, for example if an update
statement for a given entity affects 0 rows (e.g. because of a concurrent
update).
Commit: cf9d131d355f3505852aab9b3539bc00d6501167
https://github.com/hibernate/hibernate-orm/commit/cf9d131d355f3505852aab9...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/AbstractBatchImpl.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchingBatch.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/NonBatchingBatch.java
Log Message:
-----------
HHH-15082 Correctly propagate the original exception when aborting a JDBC batch fails
Not strictly necessary, but it's related to these changes
and I think it's a good idea.
Compare: https://github.com/hibernate/hibernate-orm/compare/73e9859feab7...cf9d131...
2 years, 7 months
[hibernate/hibernate-orm] 73e985: Re-enable more tests.
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 73e9859feab78daf48836412622e9570e2f6cf41
https://github.com/hibernate/hibernate-orm/commit/73e9859feab78daf4883641...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/spi/SubselectFetch.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/CollectionLoaderBatchKey.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/CollectionLoaderSingleKey.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/CollectionLoaderSubSelectFetch.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/MultiIdLoaderStandard.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/MultiNaturalIdLoadingBatcher.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderDynamicBatch.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/ToOne.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EntityCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterNamedImpl.java
M hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterPositionalImpl.java
M hibernate-core/src/main/java/org/hibernate/query/results/implicit/ImplicitFetchBuilderEntity.java
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractCommonQueryContract.java
M hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/propertyref/partial/Mapping.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/propertyref/partial/PartialComponentPropertyRefTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/NativeQueryScrollableResultsTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/resulttransformer/ResultTransformerTest.java
Log Message:
-----------
Re-enable more tests.
* Make sure subselect fetch registrations are per navigable path
* Consider the result class for native queries
* Fix issues with nested property references
* Fix list expansion issues for native queries
2 years, 7 months