Skip to content

Commit

Permalink
HHH-18140 Skip optimizeUnloadedDelete if there are POST_COMMIT_DELETE…
Browse files Browse the repository at this point in the history
… listeners

Signed-off-by: Gavin King <[email protected]>
  • Loading branch information
gavinking authored and beikov committed Jun 11, 2024
1 parent ece64c7 commit f0d5cf7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private static boolean hasCustomEventListeners(EventSource source) {
// Bean Validation adds a PRE_DELETE listener
// and Envers adds a POST_DELETE listener
return fss.eventListenerGroup_PRE_DELETE.count() > 0
|| fss.eventListenerGroup_POST_COMMIT_DELETE.count() > 0
|| fss.eventListenerGroup_POST_DELETE.count() > 1
|| fss.eventListenerGroup_POST_DELETE.count() == 1
&& !(fss.eventListenerGroup_POST_DELETE.listeners().iterator().next()
Expand Down

0 comments on commit f0d5cf7

Please sign in to comment.