diff --git a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java index a2aaf3478..c716b4514 100644 --- a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java +++ b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java @@ -595,7 +595,7 @@ public class SimpleJpaRepository implements JpaRepositoryImplementation R findBy(Example example, Function, R> queryFunction) { - Assert.notNull(example, "Sample must not be null"); + Assert.notNull(example, "Example must not be null"); Assert.notNull(queryFunction, "Query function must not be null"); ExampleSpecification spec = new ExampleSpecification<>(example, escapeCharacter);