Skip to content

ReplaceById needs change that is in UpsertById in DATACOUCH-625 for immutable entities [DATACOUCH-666] #974

Closed
@spring-projects-issues

Description

@spring-projects-issues

Michael Reiche opened DATACOUCH-666 and commented

The last return should return template.support().applyUpdatedCas(...) instead of 'o'.   If the 'o' is immutable, it won't contain the updated cas.  This was done in DATACOUCH-625 for UpsertById, the same change is needed here in ReplaceById

return template.getCollection(collection).reactive() .replace(converted.getId(), converted.export(), buildReplaceOptions(o)).map(result -> { template.support().applyUpdatedCas(o, result.cas()); return o; });

Referenced from: pull request #288

Backported to: 4.1.3 (2020.0.3), 4.0.7 (Neumann SR7)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions