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

Reply via email to