-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create a possibility to work with aggregates having immutable identifier (e.g. data class with a val) #29
Comments
I have a running implementation on that. Thanks to Jan-Hendrick scala pitch... |
Then we have to re-record that part of our presentation ... :-) |
Adjusted the milestone of this issue, and the pull request, to 0.3.0. |
Do you think it is required to split the PR into non-spring only and spring config by any means? Is it possible to discuss missing features in the Spring-part instead? |
I've left a more thorough comment on the pull request just now! Let me know what you think @zambrovski. |
Kotlin immutability is a strong feature. Based on Java implementation, aggregates members have to be mutable, to be able to get modified from the event sourcing handlers (including the aggregate identifier).
As shown on Event-Driven-Microservices 2019 conference, this can be changed (shown in Scala) by providing a special aggregate factory, which creates aggregates with at least immutable aggregate identifier.
The text was updated successfully, but these errors were encountered: