JPA Methodin javax.persistence.criteria.CriteriaBuilderPath<T> treat( Path<X> path, Class<T> type) Downcast Path object to the specified type. Parameters:path - pathtype - type to be downcast toReturn: Path object of the specified typeSince:JPA 2.1