package at.ac.tuwien.inso.repository;

import at.ac.tuwien.inso.entity.*;

import org.springframework.data.repository.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseRepository extends CrudRepository<Course, Long> {

    List<Course> findAllBySemester(Semester semester);

    List<Course> findAllBySemesterAndSubjectNameLikeIgnoreCase(Semester semester, String name);

}
@@ -428,9 +428,92 @@
 name);%0A%0A
+    List%3CCourse%3E findAllBySemesterAndSubject(Semester semester, Subject subject);%0A%0A
 %7D

Add find course by semester and lecturer