@@ -52,5 +52,8 @@ public interface ExamStudentRepo extends JpaRepository<ExamStudent, Long>, Query
List<ExamStudent> findByOrgId(Long orgId);
+ @Transactional
+ @Modifying
+ @Query("delete from ExamStudent s where s.exam.id = ?1")
void deleteByExamId(Long examId);
}