In Hades you could say myDao.count(mySpecification) but there is no such method in Spring Data JPA Repositories, only myDao.count(). Is there any other way to achieve this?
In Hades you could say myDao.count(mySpecification) but there is no such method in Spring Data JPA Repositories, only myDao.count(). Is there any other way to achieve this?
Okay as soon as I asked, I found the solution... Your Repository has to extend the JpaSpecificationExecutor interface. As you can guess, I'm in the middle of migrating from Hades to Data JPA![]()