100 | Method javax.persistence.criteria.CriteriaBuilder Expression<N> sum( Expression<N> x ) Create an aggregate expression applying the sum operation. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0 |
99 | Method javax.persistence.criteria.CriteriaBuilder Expression<N> sum( Expression<?> x, Expression<?> y ) Create an expression that returns the sum of its arguments. Parameters: x - expression y - expression Returns: sum Since: JPA 2.0 |
99 | Method javax.persistence.criteria.CriteriaBuilder Expression<N> sum( Expression<?> x, N y ) Create an expression that returns the sum of its arguments. Parameters: x - expression y - value Returns: sum Since: JPA 2.0 |
99 | Method javax.persistence.criteria.CriteriaBuilder Expression<N> sum( N x, Expression<?> y ) Create an expression that returns the sum of its arguments. Parameters: x - value y - expression Returns: sum Since: JPA 2.0 |
71 | calculations (count, sum, avg, max, min) that are carried out on all the objects (or the object tuples) in ... functions of SQL: COUNT - returns a long value representing the number of elements. SUM - returns the sum ... that use that currency: SELECT c.currency, SUM(c.population) FROM Country c WHERE 'Europe' MEMBER |
37 | = cb.parameter(Integer.class); // Addition (+) Expression<Integer> sum1 = cb.sum(path, param); // 2 expressions Expression<Integer> sum2 = cb.sum(path, 1000); // expression + number Expression<Integer> sum3 = cb.sum(1000, path); // number + expression // Subtraction |
33 | ( "SELECT cc.totalCC.moneda, SUM(cc.totalCC.importe) FROM ComprobanteContable cc " + "WHERE cc ... ", this).getResultList(); The problem is about SUM on cc.totalCC.importe, a BigDecimal field. It works fine on all groups giving to me the correct sum BigDecimal value, except in one group |
32 | Expression<N> sum( Expression<N> x) Create an aggregate expression applying the sum operation. Create an aggregate expression applying the sum operation. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0 Expression<N> sum( Expression<?> x, N y |
30 | , count, sum, avg, min, max, ...). ORDER BY clause (orderBy, Order, asc, desc). The links ... , currentDate, ...). Paths, navigation and types (get, type). Arithmetic expressions (sum, diff, prod |
21 | , SUM, THEN,TRAILING, TRIM, TRUE, TYPE, UNKNOWN, UPDATE, UPPER, VALUE, WHEN, WHERE. JPQL variables as |