You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Johannes Häyry <jo...@vaadin.com> on 2015/11/03 08:43:40 UTC
Generated query for count
Hello,
Is it possible to use generated query for count and if so, how is it done?
I was expecting Long countByFlagIsNotNull() to work, but instead I had to
add Query annotation like this:
@Query("select count(m) from Message m where m.flag is not null")
/Johannes
--
Johannes Häyry, Vaadin Expert
Vaadin.com <https://vaadin.com> - +358 443 564 403 - skype:johannes_vaadin