feature: Add optimistic offline lock (#1306) (#2551)

This commit is contained in:
Eugene
2023-08-27 14:01:46 +03:00
committed by GitHub
parent 70692f647f
commit 8b11e76f46
9 changed files with 399 additions and 0 deletions
@@ -0,0 +1,18 @@
package com.iluwatar.api;
/**
* Service for entity update.
*
* @param <T> target entity
*/
public interface UpdateService<T> {
/**
* Update entity.
*
* @param obj entity to update
* @param id primary key
* @return modified entity
*/
T doUpdate(T obj, long id);
}