Esempio n. 1
0
 @Override
 public Page<Comment> findAllPagedByID(Long id, int pagenum, int size) {
   return commentRepository.findAllByPost_PostId(id, new PageRequest(pagenum, size));
 }
Esempio n. 2
0
 @Override
 public Comment save(Comment comment) {
   return commentRepository.save(comment);
 }
Esempio n. 3
0
 @Override
 public Long countByPost(Post post) {
   return commentRepository.countByPost(post);
 }