How to use a custom aggregate function?

Mark Stobbe <[email protected]> Thu, 4 Jan 2024 16:12:24 +0100
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAHdRq5_3-8m+bcbKonBOnvbQDEWQ57ySiVGMdK8f-7Cvw=Tp1g@mail.gmail.com>
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 it as a ASTAggregateFunctionCall

Mark