The save() method saves the given Film object to the film repository. The setId() method sets the assigned id for the Film object to the given value.
public FilmDto save(FilmDto filmDto) {
Film film = modelMapper.map(filmDto, Film.class);
film = this.filmRepository.save(film);
filmDto.setId(film.getId());
return filmDto;