diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index 643c24f..4cb9f8b 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -745,7 +745,7 @@ public abstract class DepotRepository if (primaryKey == null) { throw new IllegalArgumentException("Can't delete record with null primary key."); } - return deleteAll(type, primaryKey, primaryKey); + return delete(type, primaryKey); } /** @@ -754,8 +754,7 @@ public abstract class DepotRepository * * @return the number of rows deleted by this action. */ - protected int delete ( - Class type, Comparable primaryKeyValue) + protected int delete (Class type, Comparable primaryKeyValue) throws DatabaseException { return delete(type, _ctx.getMarshaller(type).makePrimaryKey(primaryKeyValue));