class ReviewServiceImpl implements ReviewService {

    @Override
    @Transactional(readOnly = true)
    public ServiceResult<List<ReviewResource>> getReviews(long userId, long competitionId) {
        List<Review> reviews = reviewRepository.findByParticipantUserIdAndTargetCompetitionIdOrderByActivityStateAscIdAsc(userId, competitionId);
        return serviceSuccess(simpleMap(reviews, reviewMapper::mapToResource));
    }

}