Changeset e0ef1b1 in Git for src/main/java/com/wediscussmovies/project/service/GenreService.java
- Timestamp:
- 02/04/22 23:22:13 (3 years ago)
- Branches:
- main
- Children:
- 5b447b0
- Parents:
- 3ded84d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/service/GenreService.java
r3ded84d re0ef1b1 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model.*; 3 import com.wediscussmovies.project.model.Genre; 4 import com.wediscussmovies.project.querymodels.GenreLikes; 4 5 import org.springframework.stereotype.Service; 5 6 6 7 import java.util.List; 7 import java.util.Optional;8 8 9 9 @Service 10 10 public interface GenreService { 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); 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 15 17 }
Note:
See TracChangeset
for help on using the changeset viewer.