Interface LikesPostRepo
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<LikesEntity,,Integer> JpaRepository<LikesEntity,,Integer> org.springframework.data.repository.ListCrudRepository<LikesEntity,,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<LikesEntity,,Integer> org.springframework.data.repository.PagingAndSortingRepository<LikesEntity,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<LikesEntity>,org.springframework.data.repository.Repository<LikesEntity,Integer>
-
Method Summary
Modifier and TypeMethodDescriptioncountByPostID(Integer postID) voiddeleteByPostId(Integer postID) booleanexistsByMemberIDAndPostID(Integer memberID, Integer postID) findByMemberIDAndPostID(Integer memberID, Integer postID) findLikesByMember(Integer memberID) 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
-
findByMemberIDAndPostID
-
findLikesByMember
-
deleteByPostId
@Modifying @Transactional @Query("DELETE FROM LikesEntity l WHERE l.postID = :postID") void deleteByPostId(@Param("postID") Integer postID) -
existsByMemberIDAndPostID
-
countByPostID
-