|
|
@ -10,7 +10,7 @@ import java.util.List;
|
|
|
|
public interface CommentDao extends MongoRepository<Comment,String> {
|
|
|
|
public interface CommentDao extends MongoRepository<Comment,String> {
|
|
|
|
|
|
|
|
|
|
|
|
public Page<Comment> findByParentId(String parentId, Pageable pageable);
|
|
|
|
public Page<Comment> findByParentId(String parentId, Pageable pageable);
|
|
|
|
public Page<Comment> findByRootIdAndReplyToUserIdNotNull(String rootId, Pageable pageable);
|
|
|
|
public Page<Comment> findByRootIdAndReplyToUserIdNotNullOrderByPublishTimeDesc(String rootId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalId(String journalId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalId(String journalId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalIdOrderByPublishTimeDesc(String journalId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalIdOrderByPublishTimeDesc(String journalId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalIdOrderByThumbupCountDesc(String journalId, Pageable pageable);
|
|
|
|
public Page<Comment> findByJournalIdOrderByThumbupCountDesc(String journalId, Pageable pageable);
|
|
|
|