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