JPA Methodin javax.persistence.criteria.CriteriaBuilderJoin<X,V> treat( Join<X,T> join, Class<V> type) Downcast Join object to the specified type. Parameters:join - Join objecttype - type to be downcast toReturn: Join object of the specified typeSince:JPA 2.1