Use the query parameter in your toPredicate method to invoke the distinct method. Sample below: public Predicate toPredicate(Root root, CriteriaQuery<?
確定! 回上一頁