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...