diff --git a/data.mv.db b/data.mv.db index 945a1d3..9b852fc 100644 Binary files a/data.mv.db and b/data.mv.db differ diff --git a/src/main/java/ru/ulstu/is/lab1/DataBase/service/FilmService.java b/src/main/java/ru/ulstu/is/lab1/DataBase/service/FilmService.java index a4d92d5..e58a673 100644 --- a/src/main/java/ru/ulstu/is/lab1/DataBase/service/FilmService.java +++ b/src/main/java/ru/ulstu/is/lab1/DataBase/service/FilmService.java @@ -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);