I was trying to implement that. But haven't found the right place yet ... Could you give me a pointer where to implement that? (which class/package in ds-data)?
Jan > -----Ursprüngliche Nachricht----- > Von: John D. Ament [mailto:[email protected]] > Gesendet: Dienstag, 18. Juli 2017 13:46 > An: [email protected] > Betreff: Re: countBy... method > > Actually, you could implement it on your own as an extension, as a > query delegate > http://deltaspike.apache.org/documentation/data.html#Extensions . > But this should be trivial for us to add in to core. > > John > > On Tue, Jul 18, 2017 at 7:41 AM Ondrej Mihályi > <[email protected]> > wrote: > > > This feature isn't implemented yet. > > It was added as a feature request very recently: > > https://issues.apache.org/jira/browse/DELTASPIKE-1280 > > So hopefully it will be supported soon, it would be a nice and useful > > addition. > > > > After you sign into the Apache JIRA, you can vote for this issue to > > give it more priority. > > > > Ondro > > > > 2017-07-18 12:25 GMT+02:00 Instantiation Exception < > > [email protected]>: > > > > > Hi > > > > > > I have following method in repository: > > > > > > List<Message> findBySentOrderById(boolean sent) > > > > > > I need analogous count method. I tried: > > > > > > long countBySentOrderById(boolean sent) > > > > > > but using this method throws > > > > > > org.apache.deltaspike.data.api.QueryInvocationException: Failed > > > calling Repository... > > > > > > How can I create count method? I know I can write JPQL by hand and > > > place > > it > > > in @Query, but that feels awkward. > > > > > > Best regards, > > > Konrad > > > > >
