JPA Methodin javax.persistence.criteria.SubqueryRoot<Y> correlate( Root<Y> parentRoot) Create a subquery root correlated to a root of the enclosing query. Parameters:parentRoot - a root of the containing queryReturn: subquery rootSince:JPA 2.0