小编abi*_*bii的帖子

spring data jpa多重排序

我正在使用spring数据jpa和JQGrid.我需要基于多个排序参数的响应.我尝试使用sort参数=列a,列b和排序顺序= asc,但我得到一个例外

:没有属性列a,列po在pojo中找到.

如果我将一列作为排序参数传递,它可以工作.码:

Pageable pageable = JPAUtility.constructPageSpecification(pageNumber, rowsPerPage, sortColName, sortOrder);
Run Code Online (Sandbox Code Playgroud)

如何在sortColName参数中传递多个列名?

sorting jqgrid spring-data-jpa

3
推荐指数
1
解决办法
3303
查看次数

标签 统计

jqgrid ×1

sorting ×1

spring-data-jpa ×1