cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: New features in Select API
Date Wed, 08 Apr 2015 14:44:51 GMT
On Tue, Apr 7, 2015 at 9:24 PM, Aristedes Maniatis <ari@maniatis.org> wrote:

> Am I missing the point here of why these should be in an ORM? Personally
> if we are going to add more convenience functions I'd rather see
> query.count(), query.sum(Article.PRICE), etc aggregate functions.
>

Hi Ari,

If you want some aggregate functions, I have this:

https://github.com/mrg/cbe/blob/master/FetchingObjects/Aggregates/src/main/java/cbe/fetching/utilities/AggregateUtils.java

With an example using them:

https://github.com/mrg/cbe/blob/master/FetchingObjects/Aggregates/src/main/java/cbe/fetching/Aggregates.java

mrg

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message