Package com.bytedesk.voc.reply
Interface ReplyRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ReplyEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<ReplyEntity,,Long> org.springframework.data.repository.ListCrudRepository<ReplyEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ReplyEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<ReplyEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ReplyEntity>,org.springframework.data.repository.Repository<ReplyEntity,Long>
public interface ReplyRepository
extends org.springframework.data.jpa.repository.JpaRepository<ReplyEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<ReplyEntity>findByFeedbackId(Long feedbackId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<ReplyEntity>findByUserId(Long userId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<ReplyEntity>findInternalReplies(Long feedbackId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<ReplyEntity>findPublicReplies(Long feedbackId, org.springframework.data.domain.Pageable pageable) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByFeedbackId
org.springframework.data.domain.Page<ReplyEntity> findByFeedbackId(Long feedbackId, org.springframework.data.domain.Pageable pageable) -
findByUserId
org.springframework.data.domain.Page<ReplyEntity> findByUserId(Long userId, org.springframework.data.domain.Pageable pageable) -
findPublicReplies
@Query("SELECT r FROM ReplyEntity r WHERE r.feedbackId = ?1 AND r.internal = false ORDER BY r.createdAt ASC") org.springframework.data.domain.Page<ReplyEntity> findPublicReplies(Long feedbackId, org.springframework.data.domain.Pageable pageable) -
findInternalReplies
@Query("SELECT r FROM ReplyEntity r WHERE r.feedbackId = ?1 AND r.internal = true ORDER BY r.createdAt ASC") org.springframework.data.domain.Page<ReplyEntity> findInternalReplies(Long feedbackId, org.springframework.data.domain.Pageable pageable)
-