mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-14291 - Minor changes for NativeQuery and BulkOperationCleanupAction
This commit is contained in:
parent
0544dba5bb
commit
18b3def741
@ -36,6 +36,13 @@ public interface SynchronizeableQuery<T> {
|
||||
*/
|
||||
SynchronizeableQuery<T> addSynchronizedQuerySpace(String querySpace);
|
||||
|
||||
/**
|
||||
* Adds a table expression as a query space.
|
||||
*/
|
||||
default SynchronizeableQuery<T> addSynchronizedTable(String tableExpression) {
|
||||
return addSynchronizedQuerySpace( tableExpression );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking. Same as
|
||||
* {@link #addSynchronizedQuerySpace} for all tables associated with the given entity.
|
||||
|
@ -189,9 +189,8 @@ public void doAfterTransactionCompletion(boolean success, SharedSessionContractI
|
||||
|
||||
for ( NaturalIdCleanup cleanup : naturalIdCleanups ) {
|
||||
cleanup.release();
|
||||
|
||||
}
|
||||
entityCleanups.clear();
|
||||
naturalIdCleanups.clear();
|
||||
|
||||
for ( CollectionCleanup cleanup : collectionCleanups ) {
|
||||
cleanup.release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user