Пример #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);
 }