Skip to content

Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+#1

Merged
jparams merged 1 commit intoquerydsl-5.0.0from
codex/add-sumdouble,-sumbigdecimal,-sumbiginteger-methods
Mar 13, 2026
Merged

Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+#1
jparams merged 1 commit intoquerydsl-5.0.0from
codex/add-sumdouble,-sumbigdecimal,-sumbiginteger-methods

Conversation

@jparams
Copy link
Owner

@jparams jparams commented Mar 13, 2026

Summary

Add the following typed aggregation helpers to NumberExpression:

  • sumDouble()
  • sumLong()
  • sumBigDecimal()
  • sumBigInteger()

Motivation

Querydsl 6+ introduces typed aggregation helpers such as sumDouble() and sumLong().
Adding these methods to Querydsl 5 allows projects to adopt the newer DSL now and makes future upgrades easier.

This provides forward compatibility and reduces code changes required when migrating to newer versions.

Example

qOrder.amount.sumDouble();
qOrder.quantity.sumLong();
qInvoice.total.sumBigDecimal();

@jparams jparams changed the title Add typed SUM aggregation helpers to NumberExpression and tests Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+ Mar 13, 2026
@jparams jparams merged commit d215333 into querydsl-5.0.0 Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant