Interface CommentRepo
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CommentEntity,,Integer> JpaRepository<CommentEntity,,Integer> org.springframework.data.repository.ListCrudRepository<CommentEntity,,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<CommentEntity,,Integer> org.springframework.data.repository.PagingAndSortingRepository<CommentEntity,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<CommentEntity>,org.springframework.data.repository.Repository<CommentEntity,Integer>
-
Method Summary
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
-
findByPostPostID
-
findCommentsWithMemberInfoByPostID
@Query("SELECT new com.eeit87t3.tickiteasy.post.dto.ShowCommentDTO(c.postID, c.postCommentID, c.memberID, c.content, c.commentDate, c.editTime, m.nickname, m.profilePic) FROM CommentEntity c JOIN Member m ON c.memberID = m.memberID WHERE c.postID = :postID") List<ShowCommentDTO> findCommentsWithMemberInfoByPostID(@Param("postID") Integer postID)
-