HHH-14291 - Minor changes for NativeQuery and BulkOperationCleanupAction

This commit is contained in:
Steve Ebersole 2020-10-28 10:00:30 -05:00
parent 0544dba5bb
commit 18b3def741
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -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();