DATAJPA-862 - Fixed Query parameter index in @Query example.
Original pull request: #165.
This commit is contained in:
committed by
Oliver Gierke
parent
86d50bee2e
commit
44c2f78a88
@@ -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);
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user