JPA Method
in javax.persistence.criteria.CriteriaBuilder

Path<T> treat(
  Path<X> path, 
  Class<T> type
)


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