ЛР5 вроде готово

This commit is contained in:
ityurner02@mail.ru 2023-05-24 18:17:25 +04:00
parent 7512de70c2
commit 157ba0f38b
2 changed files with 0 additions and 1 deletions

Binary file not shown.

View File

@ -74,7 +74,6 @@ public class FilmService {
if (film == null) {
throw new EntityNotFoundException(String.format("Film with id [%s] is not found", filmId));
}
film.removeGenres();
for(Long genreId : genreIds) {
final Genre genre = genreService.findGenre(genreId);
film.addGenre(genre);