... ... public interface ErrorReportRepo extends JpaRepository<ErrorReport, Integer>, JpaSpecificationExecutor { @Modifying //************ important @Transactional @Query("DELETE FROM ErrorReport e WHERE e.dateReport BETWEEN ?1 AND ?2") public void deleteBetweenCalendar(Calendar start, Calendar end); }
ไม่มีความคิดเห็น:
แสดงความคิดเห็น