From 891144b54354d6666f698dd76f0eeb309891f0f4 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 11 May 2011 18:37:15 +0200 Subject: [PATCH] DATACMNS-35 - Added delete(ID id) method to Repository interface. --- .../springframework/data/repository/Repository.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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. *