public static <A extends Comparable<? super A>> ComparableExpression<A> max(CollectionExpression<?,A> left) {
        return Expressions.comparableOperation((Class) left.getParameter(0), Ops.QuantOps.MAX_IN_COL, (Expression<?>) left);
    }
Create a max(col) expression

@param left collection
@return max(col)
querydsl-jpa/src/main/java/com/querydsl/jpa/JPAExpressions.java