Skip to content

Commit

Permalink
add query order
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger committed Nov 30, 2024
1 parent 6e5e013 commit 6d5bc75
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ default CourseCompetency findByIdWithLectureUnitsAndExercisesElseThrow(long comp
FROM CourseCompetency c
WHERE c.course.id = :courseId
AND (SIZE(c.lectureUnitLinks) > 0 OR SIZE(c.exerciseLinks) > 0)
ORDER BY c.id
""")
List<CourseCompetency> findByCourseIdAndLinkedToLearningObjectOrderById(@Param("courseId") long courseId);

Expand Down

0 comments on commit 6d5bc75

Please sign in to comment.