diff --git a/backend/src/main/java/core/services/TaskService.java b/backend/src/main/java/core/services/TaskService.java index 09ff677..eaa1f24 100644 --- a/backend/src/main/java/core/services/TaskService.java +++ b/backend/src/main/java/core/services/TaskService.java @@ -11,9 +11,6 @@ import core.repositories.timemanager.TaskgroupRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.*; @@ -95,7 +92,6 @@ public class TaskService { return new ServiceResult<>(task); } - @Transactional public void deleteTask(Task task) { taskScheduleService.deleteScheduleByTask(task); taskRepository.deleteByTaskID(task.getTaskID());