Interface ProjectReplyCommentJpaRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProjectReplyComment,
,Integer> org.springframework.data.jpa.repository.JpaRepository<ProjectReplyComment,
,Integer> org.springframework.data.repository.ListCrudRepository<ProjectReplyComment,
,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<ProjectReplyComment,
,Integer> org.springframework.data.repository.PagingAndSortingRepository<ProjectReplyComment,
,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<ProjectReplyComment>
,org.springframework.data.repository.Repository<ProjectReplyComment,
Integer>
public interface ProjectReplyCommentJpaRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProjectReplyComment,Integer>
ProjectReplyCommentJpaRepository는 Project 대댓글 엔티티에 대한 데이터 액세스 기능을 제공.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByProjectCommentAndState
(ProjectComment projectComment, BaseEntity.State state) findByIdAndState
(Integer replyCommentIdx, BaseEntity.State state) findByIdAndStateWithPessimisticLock
(Integer replyCommentIdx, BaseEntity.State state) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByIdAndState
-
existsByProjectCommentAndState
-
findByIdAndStateWithPessimisticLock
@Lock(PESSIMISTIC_WRITE) @QueryHints() @Query("SELECT c FROM ProjectReplyComment c WHERE c.id = :replyCommentIdx AND c.state = :state") Optional<ProjectReplyComment> findByIdAndStateWithPessimisticLock(Integer replyCommentIdx, BaseEntity.State state)
-