Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- @Transactional(readOnly = true)
- public List<TopicModel> getTopicsByTitle(String title){
- ModelMapper modelMapper = new ModelMapper();
- List<TopicModel> topics = new ArrayList<>();
- for(TopicEntity t : topicRepository.findByTitle(title))
- topics.add(modelMapper.map(t, TopicModel.class));
- return topics;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement