From 5191ef0e7d58188cc4b721aa7aca3da51938654a Mon Sep 17 00:00:00 2001 From: Sebastian Loose Date: Tue, 21 Jan 2025 16:11:00 +0100 Subject: [PATCH] Fix server style errors --- .../lecture/repository/LectureTranscriptionRepository.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/tum/cit/aet/artemis/lecture/repository/LectureTranscriptionRepository.java b/src/main/java/de/tum/cit/aet/artemis/lecture/repository/LectureTranscriptionRepository.java index 5c903565db4c..c42a9050b3a2 100644 --- a/src/main/java/de/tum/cit/aet/artemis/lecture/repository/LectureTranscriptionRepository.java +++ b/src/main/java/de/tum/cit/aet/artemis/lecture/repository/LectureTranscriptionRepository.java @@ -8,7 +8,6 @@ import org.springframework.context.annotation.Profile; import org.springframework.data.jpa.repository.EntityGraph; -import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import de.tum.cit.aet.artemis.core.repository.base.ArtemisJpaRepository; @@ -22,12 +21,12 @@ public interface LectureTranscriptionRepository extends ArtemisJpaRepository { @EntityGraph(type = LOAD, attributePaths = { "segments" }) - Optional findOneWithTranscriptionSegmentsById(@Param("id") Long id); + Optional findOneWithTranscriptionSegmentsById(Long id); @EntityGraph(type = LOAD, attributePaths = { "segments" }) - Set findAllWithTranscriptionSegmentsByLectureId(@Param("lectureId") Long lectureId); + Set findAllWithTranscriptionSegmentsByLectureId(Long lectureId); @EntityGraph(type = LOAD, attributePaths = {}) - Set findAllByLectureId(@Param("lectureId") Long lectureId); + Set findAllByLectureId(Long lectureId); }