Jakarta Persistence (JPA) Method

Join<Z,X> on(
  Expression<Boolean> restriction
)


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:
restriction - a simple or compound boolean expression
Returns:
the modified join object.
Since:
Jakarta Persistence (JPA) 2.1