我正在使用Spring Data JPA和JQGrid。我需要基于多个排序参数的响应。
我尝试使用排序参数=列a,列b和排序顺序=升序,但是我遇到了异常:
在pojo中找不到属性column a,column b。
如果我只传递其中一个列作为排序参数,它可以正常工作。
代码:
Pageable pageable = JPAUtility.constructPageSpecification(pageNumber, rowsPerPage, sortColName, sortOrder);
如何在sortColName
参数中传递多个列名?