main
Last change
on this file since 3b6962d was 3b6962d, checked in by unknown <mlviktor23@…>, 19 months ago |
moderation/reporting api in spring boot
|
-
Property mode
set to
100644
|
File size:
677 bytes
|
Line | |
---|
1 | package mk.profesori.springapp.Repository;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
---|
6 | import org.springframework.data.repository.CrudRepository;
|
---|
7 | import org.springframework.stereotype.Repository;
|
---|
8 |
|
---|
9 | import mk.profesori.springapp.Model.Faculty;
|
---|
10 | import mk.profesori.springapp.Model.Professor;
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public interface ProfessorRepository extends CrudRepository<Professor, Long>, JpaSpecificationExecutor<Professor> {
|
---|
14 |
|
---|
15 | List<Professor> findAll();
|
---|
16 |
|
---|
17 | Professor findByProfessorId(Long id);
|
---|
18 |
|
---|
19 | List<Professor> findByFaculty(Faculty faculty);
|
---|
20 |
|
---|
21 | List<Professor> findByProfessorNameContainingIgnoreCase(String name);
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.