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?
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, http://studio.atlassian.com/browse/AO
Thanks Sam, https://studio.atlassian.com/browse/AO-312
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.