Re: How to use a custom aggregate function?

2024-01-04 Thread Andrus Adamchik
Hi Marc, Upgrading to 4.2 final is probably a good idea regardless of the aggregation function use :) Regarding your question. There are a few ways to approach it (and I wish we could abstract it a bit better) : 1. Instead of someProperty.function(..), try to create a subclass of

How to use a custom aggregate function?

2024-01-04 Thread Mark Stobbe
Hi all, Does anyone know how to use "array_agg" as a function? I am using Cayenne 4.2.M3, but it's ok if I need to upgrade to a later version. I was trying with someProperty.function("array_agg", List.class) but it will not automatically group by all the other fields since it doesn't recognise