Example #1
0
 public List<Topic> getAllTopicsForCategory(Long categoryId) {
   return topicRepository.getAllTopicsForCategory(categoryId);
 }
Example #2
0
 public void save(Topic topic, Long categoryId) {
   Category category = categoryService.getById(categoryId);
   topic.setCategory(category);
   topicRepository.save(topic);
 }