From a36179734f679cbf4d44c43c1602ddd0c717bfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Mo=CC=88slinger?= Date: Mon, 15 Feb 2016 14:41:30 +0000 Subject: [PATCH] DATAJPA-862 - Fixed Query parameter index in @Query example. Original pull request: #165. --- src/main/asciidoc/jpa.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index f739f8c21..830e03fef 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -273,7 +273,7 @@ Native queriesThe `@Query` annotation allows to execute native queries by settin ---- public interface UserRepository extends JpaRepository { - @Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?0", nativeQuery = true) + @Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1", nativeQuery = true) User findByEmailAddress(String emailAddress); } ----