Skip to content

Commit

Permalink
Fix server style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianloose committed Jan 21, 2025
1 parent 1d3c6b2 commit 5191ef0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,12 +21,12 @@
public interface LectureTranscriptionRepository extends ArtemisJpaRepository<LectureTranscription, Long> {

@EntityGraph(type = LOAD, attributePaths = { "segments" })
Optional<LectureTranscription> findOneWithTranscriptionSegmentsById(@Param("id") Long id);
Optional<LectureTranscription> findOneWithTranscriptionSegmentsById(Long id);

@EntityGraph(type = LOAD, attributePaths = { "segments" })
Set<LectureTranscription> findAllWithTranscriptionSegmentsByLectureId(@Param("lectureId") Long lectureId);
Set<LectureTranscription> findAllWithTranscriptionSegmentsByLectureId(Long lectureId);

@EntityGraph(type = LOAD, attributePaths = {})
Set<LectureTranscription> findAllByLectureId(@Param("lectureId") Long lectureId);
Set<LectureTranscription> findAllByLectureId(Long lectureId);

}

0 comments on commit 5191ef0

Please sign in to comment.