Jakarta Persistence (JPA) Method

SetJoin<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
Returns:
the modified join object.
Since:
Jakarta Persistence (JPA) 2.1