diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java b/spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java index 25557fe40..b679fec05 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java @@ -81,7 +81,15 @@ public interface Repository { */ 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 { */ void delete(T entity); - + /** * Deletes the given entities. *