Active Objects, how to sum a numeric column

Im guessing this can't be done right now, someone correct me if Im wrong, this older post shows count() operators, exposed by AO, but there is no sum() operator.

Without reading all data, how to SUM a numeric column in a table?

2 answers

1 accepted

0 vote

You're right Andy, no way to do SUM columns at the moment. Active Objects works on Objects, and doesn't allow (at the moment) working on individual columns to compute values.

Feel free to raise a feature request though,


At the movement i can-not give you any Active Objects Example

but using hibernate it is possible eg. Long sum = Projections.sum("Name of column");

Active object is similar you can try this may be it will work.

I am not familar to hibernate, what's Projections?

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

429 views 6 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot