Puoi creare spring data jpa
metodo per lo stesso come di seguito:-
List<Event> findByStart_dateIsAfterAndEnd_dateIsBefore(Date startDate, Date endDate);
Puoi creare spring data jpa
metodo per lo stesso come di seguito:-
List<Event> findByStart_dateIsAfterAndEnd_dateIsBefore(Date startDate, Date endDate);