Hi I am working with spring-data and I am using repositories, then i just figured out that one method is not working properly for the AND-OR distribution. Here is me method.
long countByNameAndStartDateBetweenOrFinishDateBetween(String name, Date startDateFrom, Date startDateTo, Date endDateFrom, Date endDateTo);
And i would like to recover the number of users with a particular name and wheen the startDate is in between a range or the finishDate is in between a range.
But he is combining Name&startDate - Or finishDate so return the number of records with the finishDate in between.
Is possible to do it with spring data? Should i use @Query annotation and write my query there?
Thanks!