JPA Method
in javax.persistence.criteria.CriteriaBuilder

Join<X,V> treat(
  Join<X,T> join, 
  Class<V> type
)


Downcast Join object to the specified type.
Parameters:
join - Join object
type - type to be downcast to
Return:
Join object of the specified type
Since:
JPA 2.1