greatest(x) - JPA CriteriaBuilder's method

Create an aggregate expression for finding the greatest of the values (strings, dates, etc).
Parameters:
x - expression representing input value to greatest operation
Returns:
greatest expression
Since:
JPA 2.0