JPA Methodin javax.persistence.criteria.CriteriaBuilderPredicate exists( Subquery<?> subquery) Create a predicate testing the existence of a subquery result. Parameters:subquery - subquery whose result is to be testedReturn: exists predicateSince:JPA 2.0