I\'ve got a class which contains an atttribute of java.time.LocalDateTime type.
public class MyClass{ // ... private LocalDateTime fecha; // ... } >
Try this (not tested):
public interface IRepository extends CrudRepository { // ... default void delByFecha(LocalDate fecha) { deleteByFechaBetween(fecha.atStartOfDay(), fecha.plusDays(1).atStartOfDay()); } void deleteByFechaBetween(LocalDateTime from, LocalDateTime to); // ... }