JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<Long> sumAsLong(
  Expression<Integer> x
)


Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.
Parameters:
x - expression representing input value to sum operation
Return:
sum expression
Since:
JPA 2.0