darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
441 stars 174 forks source link

add summary properties #93

Closed RicoSchueppel closed 4 years ago

RicoSchueppel commented 5 years ago

hi .. is there a suggested way how to add 'summary properties' like the sum of values over a certain column (total value before pagination, but with applied filters)

sum of this value in current page could be done in frontend, but i need the total of all pages (after filter applied)

thx in advance

darrachequesne commented 5 years ago

@RicoSchueppel hmm.. that's tricky. I guess you could reuse the SpecificationBuilder class, and use it in another query (see here for reference). That's all I can think of right now.

darrachequesne commented 4 years ago

Closed due to inactivity, please reopen if needed.