I am exploring QueryDsl, and in particular @QuerydslPredicate
used on RestControllers for binding rest params to Querydsl Predicates. An example endpoint is given below:
@GetMapping
public Page<UserViewDTO> findAll(@QuerydslPredicate(root = User.class) Predicate predicate, Pageable pageable) {
My request contains the following query params: ?username=user&page=0&size=10&sort=id,asc
. Is it possible to somehow pass a groupBy parameter? I have looked at the documentation but could not find a way to do so. Adding it to the query params is simply being ignored.
Is it possible to somehow pass a groupBy parameter?
No, it is not possible to pass groupBy parameter by QuerydslPredicate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.