deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: countBy... method
Date Wed, 19 Jul 2017 07:21:41 GMT
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:johndament@apache.org]
> Gesendet: Dienstag, 18. Juli 2017 13:46
> An: users@deltaspike.apache.org
> 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
> <ondrej.mihalyi@gmail.com>
> 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 <
> > instantiationexception@gmail.com>:
> >
> > > 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
> > >
> >


Mime
View raw message