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); } ----