JPA Method
in javax.persistence.criteria.Subquery

Join<X,Y> correlate(
  Join<X,Y> parentJoin
)


Create a subquery join object correlated to a join object of the enclosing query.
Parameters:
parentJoin - join object of the containing query
Return:
subquery join
Since:
JPA 2.0