Skip to content

Instantly share code, notes, and snippets.

@pablocloud
Created March 13, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablocloud/11d4eaa3d04350fa4a8b2d6df9ffa42c to your computer and use it in GitHub Desktop.
Save pablocloud/11d4eaa3d04350fa4a8b2d6df9ffa42c to your computer and use it in GitHub Desktop.
package com.besuricata.rest.services;
import java.util.Collection;
public interface BasicService<T, ID> {
T getById(ID identifier);
Collection<T> findAll();
T saveNew(T object);
T update(T object);
Boolean delete(ID identifier);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment