package jpasearch.repository;
import java.io.Serializable;
import jpasearch.domain.Identifiable;
/**
* @author speralta
*/
public interface SimpleRepository<E extends Identifiable<PK>, PK extends Serializable> extends GenericRepository<E, PK> {
/**
* @param id
* the entity id
* @return the entity matching the id
*/
E getById(PK id);
/**
* @param entity
* the entity to save
* @return the saved entity
*/
E save(E entity);
/**
* @param entity
* the entity to delete
*/
void delete(E entity);
}