Closed
Description
The repository methods(deleteById/deleteInBatch/deleteAllInBatch
) do not trigger domain events.
In the class EventPublishingMethod
in File EventPublishingRepositoryProxyPostProcessor.java
there is a method to check, if the method is a delete method.
private static boolean isDeleteMethod(String methodName) { return methodName.equals("delete") || methodName.equals("deleteAll"); }
I would suggest similiar to the isSaveMethod
:
private static boolean isDeleteMethod(String methodName) { return methodName.startsWith("delete"); }