DATAJPA-908 - Added note about named parameters and @Param.
Clarifies that the use of @Param is optional when on Java 8 and compiling with -parameters flag. Original pull request: #173.
This commit is contained in:
committed by
Oliver Gierke
parent
ecd593bcaf
commit
5abe347548
@@ -322,6 +322,11 @@ public interface UserRepository extends JpaRepository<User, Long> {
|
||||
====
|
||||
Note that the method parameters are switched according to the occurrence in the query defined.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Spring 4 fully supports Java 8’s parameter name discovery based on the `-parameters` compiler flag. Using this flag in your build as an alternative to debug information, you can omit the `@Param` annotation for named parameters.
|
||||
====
|
||||
|
||||
[[jpa.query.spel-expressions]]
|
||||
=== Using SpEL expressions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user