Skip to content

DATAMONGO-2189 - Fix AfterSaveEvent to contain the saved entity in ReactiveMongoTemplate.insert(…) #638

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

Closed
wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Jan 24, 2019

ReactiveMongoTemplate.insert(…) now uses the saved entity when emitting AfterSaveEvent. This change affects usage of immutable objects that are using Id generation. Previously, the to-be-saved entity instance was used which left the Id unpopulated.


Related ticket: DATAMONGO-2189.

…activeMongoTemplate.insert(…).

ReactiveMongoTemplate.insert(…) now uses the saved entity when emitting AfterSaveEvent. This change affects usage of immutable objects that are using Id generation. Previously, the to-be-saved entity instance was used which left the Id unpopulated.
christophstrobl pushed a commit that referenced this pull request Jan 28, 2019
…activeMongoTemplate.insert(…).

ReactiveMongoTemplate.insert(…) now uses the saved entity when emitting AfterSaveEvent. This change affects usage of immutable objects that are using Id generation. Previously, the to-be-saved entity instance was used which left the Id unpopulated.

Original Pull Request: #638
christophstrobl added a commit that referenced this pull request Jan 28, 2019
Assert returned object is not the same as the saved one and move helper method.

Original Pull Request: #638
christophstrobl pushed a commit that referenced this pull request Jan 29, 2019
…activeMongoTemplate.insert(…).

ReactiveMongoTemplate.insert(…) now uses the saved entity when emitting AfterSaveEvent. This change affects usage of immutable objects that are using Id generation. Previously, the to-be-saved entity instance was used which left the Id unpopulated.

Original Pull Request: #638
christophstrobl added a commit that referenced this pull request Jan 29, 2019
Assert returned object is not the same as the saved one and move helper method.

Original Pull Request: #638
@christophstrobl christophstrobl deleted the issue/DATAMONGO-2189 branch January 29, 2019 06:26
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

Successfully merging this pull request may close these issues.

2 participants