In Spring Data JPA, when I want to write a custom query, if I specify a parameter, I send this parameter value with @Param annotation, Is it possible to get rid of @Param Annotation in Spring Data JPA Repository?
Example Query:
@Query("select u from User where u.name = :name")
User findUserByName(@Param("name") String name);
Desired Query:
@Query("select u from User where u.name = :name")
User findUserByName(String name);
Note, I don't want to use ?0 or something like that I want to use directly name parameters.