Jakarta Persistence (JPA) Method

Join<X,Y> join(
  Class<Y> entityClass,
  JoinType joinType
)


Create and add a join to the given entity.
Parameters:
entityClass - the target entity class
joinType - join type
Returns:
the resulting join.
Since:
Jakarta Persistence (JPA) 3.2