deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondrej Mihályi <ondrej.miha...@gmail.com>
Subject Re: countBy... method
Date Tue, 18 Jul 2017 11:41:17 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message