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
Discussion: Support for Refactoring use case for Aggregate #112
Comments
I would like to discuss here how to apply this or similar design to base gem. |
@andrzejsliwa my feeling is that there is no need to support it in What do you think? |
Something like this:
could be useful in |
Maybe in the style of
and that would do |
Then for convention one could overwrite
|
Or:
|
I can imagine I imagine it could overwrite AR method:
AutoStreamName method:
I am not sure if I also wonder if maybe Id could come from the object itself.
|
I like idea of |
@andrzejsliwa @paneq this discussion is no longer valid - aggregate class does not define a stream name anymore, |
Theoretically can happen situation when you would like to move aggregate between namespaces or you choose wrong name for it. We don't want to modify our source of true (event store), but we are using aggregate names as part of identification of stream.
In such use case this example code lets to re-define name used for constructing stream id:
The text was updated successfully, but these errors were encountered: