mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 18:59:15 +00:00
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user