DATACMNS-35 - Added delete(ID id) method to Repository interface.

This commit is contained in:
Oliver Gierke
2011-05-11 18:37:15 +02:00
parent 06872f23f5
commit 891144b543

View File

@@ -81,7 +81,15 @@ public interface Repository<T, ID extends Serializable> {
*/
long count();
/**
* Deletes the entity with the given id.
*
* @param id
*/
void delete(ID id);
/**
* Deletes a given entity.
*
@@ -89,7 +97,7 @@ public interface Repository<T, ID extends Serializable> {
*/
void delete(T entity);
/**
* Deletes the given entities.
*