Jul 11th, 2012, 01:31 AM
MongoDB repositories and count methods
I am evaluating spring-data / mongodb.
from what I can tell, the spring-data-commons does not yet support automatically generating count methods. e.g. "countByName".
also, there does not appear to be an operator in the mongo JSON syntax for counting. so I would be unable to use the @Query annotation.
am I right in assuming that my only option to do counting from my repository is to mixin a custom bean which uses MongoTemplate?
Jul 24th, 2012, 03:38 PM
The same problem for me
I've the same Issue! It's not possible to do this through Repository...
Originally Posted by LurgidBee