Vous pouvez créer des spring data jpa méthode pour la même chose comme ci-dessous :-
List<Event> findByStart_dateIsAfterAndEnd_dateIsBefore(Date startDate, Date endDate);
Vous pouvez créer des spring data jpa méthode pour la même chose comme ci-dessous :-
List<Event> findByStart_dateIsAfterAndEnd_dateIsBefore(Date startDate, Date endDate);