/**
* {@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());
}
MoviePersistenceServiceImpl.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:REST-Web-Services
作者:
评论列表
文章目录