package at.ac.tuwien.inso.repository;

import at.ac.tuwien.inso.entity.*;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.*;

public interface LecturerRepository extends CrudRepository<Lecturer, Long> {

    @Query("select l from Lecturer l where ACCOUNT_ID = ?1")
    Lecturer findLecturerByAccountId(Long id);
}

@@ -168,16 +168,40 @@
 ory.*;%0A%0A
+import java.util.List;%0A%0A
 public i
@@ -377,11 +377,49 @@
 ong id);
+%0A%0A    public List%3CLecturer%3E findAll();
 %0A%7D%0A

Add LecturerRepository.findAll()