Closed
Description
Oliver Behncke opened DATACMNS-1663 and commented
When saving an entity in a CrudRepository
, the events available in the method annotated with @DomainEvents
are published.
However, when deleting an entity with the same repository, none of the events are published. Explicitly, in EventPublishingMethodInterceptor#invoke
only methods starting with "save" are considered to trigger publishing of the events.
It would be nice, if the domain events would be published on delete, to avoid injecting the spring framework class ApplicationEventPublisher
into the domain related code
Affects: 2.2.4 (Moore SR4)
Referenced from: pull request #436
8 votes, 5 watchers