Last change
on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
552 bytes
|
Line | |
---|
1 | package project.educatum.repository;
|
---|
2 |
|
---|
3 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
4 | import org.springframework.data.jpa.repository.Query;
|
---|
5 | import org.springframework.stereotype.Repository;
|
---|
6 | import project.educatum.model.Class;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | @Repository
|
---|
11 | public interface ClassRepository extends JpaRepository<Class, Integer> {
|
---|
12 | @Query(value = "select * from project.casovi c where c.id_nastavnik = :idTeacher", nativeQuery = true)
|
---|
13 | List<Class> findAllByIdTeacher(Integer idTeacher);
|
---|
14 |
|
---|
15 | Class findByTopic(String tema);
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.