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 desc
另外一个属性设置方式
PropertyCriteria p = new PropertyCriteria(Criteria.and); p.setCollection("positions"); p.setObject("p"); p.addPropertyEditor(new PropertyEditor("p.positionName", Operator.eq, "学生"));