JPA Method
in javax.persistence.criteria.Subquery

Root<Y> correlate(
  Root<Y> parentRoot
)


Create a subquery root correlated to a root of the enclosing query.
Parameters:
parentRoot - a root of the containing query
Return:
subquery root
Since:
JPA 2.0