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

Question regarding concurrencyVersion #14

Open
stefanocke opened this issue Oct 4, 2014 · 1 comment
Open

Question regarding concurrencyVersion #14

stefanocke opened this issue Oct 4, 2014 · 1 comment

Comments

@stefanocke
Copy link

Hello,

there is a setter for concurrencyVersion in ConcurrencySafeEntity. But this setter is not called from anywhere.
How is it supposed to be used? Shouldn't be the concurrencyVersion contained in every command send to the entity to submit the version the client has seen when reading the aggregat in the first place?
If so, what would be the best place to call setConcurrencyVersion? In the application service (or even in the repository) after loading the aggregate or in the entities' methods?

Thanks + Best Regards,
Stefan.

@VaughnVernon
Copy link
Owner

Set it from wherever you gather the business data values to pass in to the aggregate command method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants