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