Skip to content

Support domain events for deletions [DATACMNS-1663] #2084

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions