Use technical event date for optimistic locking #1036
Labels
Prio: Must
This feature must be implemented in current milestone.
Status: In progress
Assignee is working on this issue.
Type: breaking
This is a breaking change. Take care while migrating.
Type: enhancement
New feature or request
Milestone
Scenario
When updating data entries for technical reasons (for example enriching the payload with a previously non-existing attribute) we want to keep the last updated date because it is part of our domain and relevant for the users in the UI. We would still like an optimistic locking mechanism, so using a new field with the technical date of the event would be good.
Current Behaviour
Currently the date from the
Modification
is used for optimistic locking. When the provided date is older than the last updated date on the JPA entity, then the update is ignored.Wanted Behaviour
Newer events (according to the domain event timestamp) should not be ignored, even if the timestamp in the modification is older.
Possible Workarounds
Database or modification timestamp modification
The text was updated successfully, but these errors were encountered: