示例#1
0
 public List<Post> findAuthorPosts(Long id) {
   return postRepository.findByAuthor(authorRepository.findOne(id));
 }
示例#2
0
 public Author findById(Long id) {
   return authorRepository.findOne(id);
 }