1

我有三个谓词:

Predicate predicate1 = cb.equal(c.get(Transport_.winnerid).get(User_.id), 1L);

Predicate predicate2 = cb.notEqual(c.get(Transport_.senderid).get(User_.id),  user.getID());

Path<Long> longpath = c.join(Transport_.bidList).join(Bid_.bidderid).get(User_.id);

Predicate predicate3 = cb.equal(longpath, user.getID());

现在我想要第四个返回的谓词:

predicate4=(Predicate1 && predicate2) minus ("disjoint") predicte3
4

0 回答 0