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:
Michael J. Simons
2016-05-31 14:46:50 +02:00
committed by Oliver Gierke
parent ecd593bcaf
commit 5abe347548

View File

@@ -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 8s 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