babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
882 stars 91 forks source link

[fr] Allow to customize jimmer aggregate functions return type #679

Closed belovaf closed 2 months ago

belovaf commented 2 months ago

In complex cases I want to be able to customize aggregate functions return type. For example, sum(table.intProp) can easily exceed int limit, so I want to define this expression type as long.

It would be great if I could define some reusable aggregate functions by myself. Currently aggregate expression classes are internal.

babyfish-ct commented 2 months ago

Try sumAsLong