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