main
Last change
on this file since f25e8dd was e0ef1b1, checked in by Test <matonikolov77@…>, 2 years ago |
Added CRUD for movies,persons,discussion,replies,genres
Added ajaxcalls
|
-
Property mode
set to
100644
|
File size:
448 bytes
|
Rev | Line | |
---|
[6e7b472] | 1 | package com.wediscussmovies.project.service;
|
---|
| 2 |
|
---|
[e0ef1b1] | 3 | import com.wediscussmovies.project.model.Genre;
|
---|
| 4 | import com.wediscussmovies.project.querymodels.GenreLikes;
|
---|
[7fafead] | 5 | import org.springframework.stereotype.Service;
|
---|
[7a0bf79] | 6 |
|
---|
| 7 | import java.util.List;
|
---|
| 8 |
|
---|
[7fafead] | 9 | @Service
|
---|
[6e7b472] | 10 | public interface GenreService {
|
---|
[e0ef1b1] | 11 | List<Genre> findAll();
|
---|
| 12 | Genre findById(Integer id);
|
---|
| 13 | List<Genre> findAllByType(String genre);
|
---|
| 14 | Genre save(String genreName);
|
---|
| 15 | List<GenreLikes> findAllWithLikes();
|
---|
| 16 |
|
---|
[6e7b472] | 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.