Last change
on this file since d3cf3a1 was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
474 bytes
|
Rev | Line | |
---|
[d3cf3a1] | 1 | package project.educatum.service;
|
---|
| 2 |
|
---|
| 3 | import project.educatum.model.Subject;
|
---|
| 4 |
|
---|
| 5 | import java.util.List;
|
---|
| 6 | import java.util.Optional;
|
---|
| 7 |
|
---|
| 8 | public interface SubjectService {
|
---|
| 9 |
|
---|
| 10 | List<Subject> findAll();
|
---|
| 11 |
|
---|
| 12 | List<Subject> findAllByNameLike(String ime);
|
---|
| 13 |
|
---|
| 14 | void delete(Integer id);
|
---|
| 15 |
|
---|
| 16 | Optional<Subject> findById(Integer id);
|
---|
| 17 |
|
---|
| 18 | List<Subject> findAllByNameAndTeacherLike(String ime, List<Subject> subjects);
|
---|
| 19 |
|
---|
| 20 | Subject create(String name);
|
---|
| 21 |
|
---|
| 22 | Subject findByName(String name);
|
---|
| 23 |
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.