setPropertyCriteria("collection:users,object:u,u.id:eq:" + user.getId());
至關於執行:jpql:select o from Task o join o.users u where u.id = :u_id_64 order by o.id descjava
另一個屬性設置方式code
PropertyCriteria p = new PropertyCriteria(Criteria.and); p.setCollection("positions"); p.setObject("p"); p.addPropertyEditor(new PropertyEditor("p.positionName", Operator.eq, "學生"));