class EcoNewsAuthorDtoMapper extends AbstractConverter<User, EcoNewsAuthorDto> {

    @Override
    public EcoNewsAuthorDto convert(User author) {
        return new EcoNewsAuthorDto(author.getId(), author.getName());
    }

}