每当我在 JPA 查询异常中使用 LIMIT 时,就会抛出异常。任何人都可以建议我根据记录的 rowNum 或 ronCount 过滤记录的替代方法。
Select a from EmployeeBo where a.batchId=:'127'and LIMIT :startPonit,:endPoint,
最佳答案
您不能在 JPA 命名查询中使用 LIMIT
,但您可以使用 setMaxResult();
关于mysql - JPA 中意外的 token 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27013784/