Jakarta Persistence (JPA) Method

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
Returns:
Path object of the specified type.
Since:
Jakarta Persistence (JPA) 2.1