JPA Method
in javax.persistence.criteria.CollectionJoin

CollectionJoin<Z,E> on(
  Predicate... restrictions
)


Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any.
Parameters:
restrictions - zero or more restriction predicates
Return:
the modified join object
Since:
JPA 2.1