This is not possible. Parameters are only allowed in the where clause.
More Related Contents:
- Dynamic spring data jpa repository query with arbitrary AND clauses
- Using generics in Spring Data JPA repositories
- POSTing a @OneToMany sub-resource association in Spring Data REST
- What is difference between CrudRepository and JpaRepository interfaces in Spring Data JPA?
- Handling soft-deletes with Spring JPA
- Filtering database rows with spring-data-jpa and spring-mvc
- why do we have to use @Modifying annotation for queries in Data Jpa
- JPA: update only specific fields
- Spring-Data FETCH JOIN with Paging is not working
- Does Spring Data JPA have any way to count entites using method name resolving?
- Use abstract super class as parameter for Spring data repository
- How to use @Transactional with Spring Data?
- How to map sql native query result into DTO in spring jpa repository?
- Spring-boot: required a bean named ‘entityManagerFactory’ that could not be found
- Difference between save and saveAndFlush in Spring data jpa
- Check date between two other dates spring data jpa
- spring data jpa @query and pageable
- Lombok @Builder and JPA Default constructor
- Spring Data JPA: Query by Example?
- How to store @Query sql in external file for CrudRepository?
- Spring Data – Multi-column searches
- Spring Data JPA find by embedded object property
- Missing CrudRepository#findOne method
- Spring Data JPA findOne() change to Optional how to use this?
- Best way of handling entities inheritance in Spring Data JPA
- Autowiring fails: Not an managed Type
- How to persist LocalDate with JPA?
- Spring JPA native query with Projection gives “ConverterNotFoundException”
- Spring Data + JPA with multiple datasources but only one set of Repositories
- Externalize query in spring boot application