From 96f8aaea4255152d4a6bce0394e8c4342506002e Mon Sep 17 00:00:00 2001 From: Michal Fotyga Date: Wed, 11 Mar 2020 21:54:17 +0100 Subject: [PATCH] Fix findByFirstnameLike @Query example in README --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 1c37390de9..1b94bfa6fd 100644 --- a/README.adoc +++ b/README.adoc @@ -36,7 +36,7 @@ public interface PersonRepository extends CrudRepository { @Query("SELECT * FROM person WHERE lastname = :lastname") List findByLastname(String lastname); - @Query("SELECT * FROM person WHERE firstname LIKE :lastname") + @Query("SELECT * FROM person WHERE firstname LIKE :firstname") List findByFirstnameLike(String firstname); }