diff --git a/src/main/java/org/springframework/data/repository/core/CrudMethods.java b/src/main/java/org/springframework/data/repository/core/CrudMethods.java index 8a87dbad0..2dc8bf63f 100644 --- a/src/main/java/org/springframework/data/repository/core/CrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/CrudMethods.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 the original author or authors. + * Copyright 2013-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ public interface CrudMethods { boolean hasFindOneMethod(); /** - * Returns the delete method of the repository. Will prefer a delete-by-id method over a delete-by-entity method. + * Returns the delete method of the repository. Will prefer a delete-by-entity method over a delete-by-id method. * * @return the delete method of the repository or {@literal null} if not available. * @see #hasDelete() diff --git a/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java b/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java index a6ce75c1b..e94691547 100644 --- a/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/support/DefaultCrudMethods.java @@ -94,9 +94,10 @@ public class DefaultCrudMethods implements CrudMethods { /** * The most suitable delete method is selected as follows: We prefer *