MoviePersistenceServiceImpl.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:REST-Web-Services 作者:
/**
 * {@inheritDoc}
 */
@Override
public void updateCountry(
        @NotNull @Valid final Country country,
        @Min(1) final Long countryId,
        @NotNull final MovieEntity movie
) throws ResourceConflictException {
    log.info("Called with country {}, countryId {}, movie {}", country, countryId, movie);

    this.existsCountry(movie.getCountries()
            .stream()
            .filter(c -> c.getStatus() == DataStatus.ACCEPTED)
            .collect(Collectors.toList()), country);

    final MovieCountryEntity movieCountry = this.entityManager.find(MovieCountryEntity.class, countryId);
    movieCountry.setCountry(country.getCountry());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号