We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d50be commit 44c2f78Copy full SHA for 44c2f78
src/main/asciidoc/jpa.adoc
@@ -273,7 +273,7 @@ Native queriesThe `@Query` annotation allows to execute native queries by settin
273
----
274
public interface UserRepository extends JpaRepository<User, Long> {
275
276
- @Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?0", nativeQuery = true)
+ @Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1", nativeQuery = true)
277
User findByEmailAddress(String emailAddress);
278
}
279
0 commit comments