DATAJPA-862 - Fixed Query parameter index in @Query example.

Original pull request: #165.
This commit is contained in:
Markus Möslinger
2016-02-15 14:41:30 +00:00
committed by Oliver Gierke
parent b4dfa101fc
commit a36179734f

View File

@@ -273,7 +273,7 @@ Native queriesThe `@Query` annotation allows to execute native queries by settin
----
public interface UserRepository extends JpaRepository<User, Long> {
@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);
}
----