main
Last change
on this file since 3ded84d was 3ded84d, checked in by Test <matonikolov77@…>, 2 years ago |
Model-database resolved bugs for mapping
|
-
Property mode
set to
100644
|
File size:
408 bytes
|
Rev | Line | |
---|
[6e7b472] | 1 | package com.wediscussmovies.project.service;
|
---|
| 2 |
|
---|
[3ded84d] | 3 | import com.wediscussmovies.project.model.*;
|
---|
[7fafead] | 4 | import org.springframework.stereotype.Service;
|
---|
[7a0bf79] | 5 |
|
---|
| 6 | import java.util.List;
|
---|
| 7 | import java.util.Optional;
|
---|
| 8 |
|
---|
[7fafead] | 9 | @Service
|
---|
[6e7b472] | 10 | public interface GenreService {
|
---|
[7a0bf79] | 11 | public List<Genre> findAll();
|
---|
| 12 | public Optional<Genre> findById(Integer id);
|
---|
| 13 | public List<Genre> findAllByType(String genre);
|
---|
| 14 | public Genre save(String genreName);
|
---|
[6e7b472] | 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.