Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve support for immutability for @AfterEventPublication [DATACMNS-1644] #2069

spring-projects-issues opened this issue Jan 9, 2020 · 0 comments
in: core in: repository in: web type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Jan 9, 2020

Oliver Drotbohm opened DATACMNS-1644 and commented

The support to publish domain events from aggregates leverages @AfterDomainEventPublication to trigger event resets in the aggregate. Implementations usually wipe out a collection which assumes mutability of the aggregate.

We could change that by inspecting the return type of the method annotated and use the value returned if it is assignable to the aggregate type

No further details from DATACMNS-1644

@spring-projects-issues spring-projects-issues added in: repository type: enhancement in: core in: web labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core in: repository in: web type: enhancement
None yet

No branches or pull requests

2 participants