exists(subquery) - JPA CriteriaBuilder's method

Create a predicate testing the existence of a subquery result.
Parameters:
subquery - subquery whose result is to be tested
Returns:
exists predicate
Since:
JPA 2.0