Interface ProjectCommentJpaRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProjectComment,
,Integer> org.springframework.data.jpa.repository.JpaRepository<ProjectComment,
,Integer> org.springframework.data.repository.ListCrudRepository<ProjectComment,
,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<ProjectComment,
,Integer> org.springframework.data.repository.PagingAndSortingRepository<ProjectComment,
,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<ProjectComment>
,org.springframework.data.repository.Repository<ProjectComment,
Integer>
public interface ProjectCommentJpaRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProjectComment,Integer>
ProjectCommentJpaRepository는 Project 댓글 엔티티에 대한 데이터 액세스 기능을 제공.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByProjectAndStateOrderByIdAsc
(Project project, BaseEntity.State state) findByIdAndState
(Integer commentIdx, BaseEntity.State state) findByIdAndStateWithPessimisticLock
(Integer commentIdx, 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
-
findAllByProjectAndStateOrderByIdAsc
-
findByIdAndStateWithPessimisticLock
@Lock(PESSIMISTIC_WRITE) @QueryHints() @Query("SELECT c FROM ProjectComment c WHERE c.id = :commentIdx AND c.state = :state") Optional<ProjectComment> findByIdAndStateWithPessimisticLock(Integer commentIdx, BaseEntity.State state)
-