Skip to content

Commit 44c2f78

Browse files
outofrangeodrotbohm
authored andcommitted
DATAJPA-862 - Fixed Query parameter index in @query example.
Original pull request: #165.
1 parent 86d50be commit 44c2f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Native queriesThe `@Query` annotation allows to execute native queries by settin
273273
----
274274
public interface UserRepository extends JpaRepository<User, Long> {
275275
276-
@Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?0", nativeQuery = true)
276+
@Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1", nativeQuery = true)
277277
User findByEmailAddress(String emailAddress);
278278
}
279279
----

0 commit comments

Comments
 (0)