countBy method with annotated query fails
RAndrews137 opened this issue · comments
If you create a countBy method and include an annotated query, it will throw an exception. The reason is that the isCountBy returns false when trying to determine which QueryExecution to use. When an annotated query is used, the StringBasedOrientQuery is used. That has a countBy boolean flag. However, it is not getting set to true if the method name startsWith 'countBy'.
I have already created a fix for this issue and tested that it works. I will check it in today and submit a pull request.
this commit: d5cf6ec
shows how to annotate a query to be used as count query.
Excellent. Thanks Roberto :)