You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to ensure that server versions assignment are sequential to ensure API clients to not miss some records.
Below is the implementation plan
Add a method persist on BaseRepository interface that will be called to save or update a record. It shall accept an entity and boolean new which determines if its an insert or update
Make the persist method synchronized so that only one thread can execute it a time
Generate the server version in the persist method so that the server version is generated and record saved in one atomic transaction
Update the service method to use persist the method
Remove the calls to generate server version on service methods
Make the method to generate server version protected/private so that they are only called from the repositories
We need to ensure that server versions assignment are sequential to ensure API clients to not miss some records.
Below is the implementation plan
The text was updated successfully, but these errors were encountered: