main
Last change
on this file since 7fafead was 7fafead, checked in by Test <matonikolov77@…>, 2 years ago |
Resolving models
|
-
Property mode
set to
100644
|
File size:
664 bytes
|
Rev | Line | |
---|
[6e7b472] | 1 | package com.wediscussmovies.project.service;
|
---|
| 2 |
|
---|
[7a0bf79] | 3 | import com.wediscussmovies.project.model.Person;
|
---|
| 4 |
|
---|
| 5 | import java.util.List;
|
---|
| 6 | import java.util.Optional;
|
---|
| 7 |
|
---|
[6e7b472] | 8 | public interface PersonService {
|
---|
[7fafead] | 9 | List<Person> findAllDirectors();
|
---|
| 10 | List<Person> findAllActors();
|
---|
[2a5d6a3] | 11 | Optional<Person> findById(Integer person_id);
|
---|
[7a0bf79] | 12 | Optional<Person> findActorById(Integer id);
|
---|
| 13 | Optional<Person> findDirectorById(Integer id);
|
---|
[2a5d6a3] | 14 | boolean save(Person person);
|
---|
| 15 | List<Person> findActorsByNameLike(String name);
|
---|
| 16 | List<Person> findActorsBySurnameLike(String surname);
|
---|
| 17 | List<Person> findDirectorsByNameLike(String name);
|
---|
| 18 | List<Person> findDirectorsBySurnameLike(String surname);
|
---|
| 19 |
|
---|
[6e7b472] | 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.