Interface RatingQuestionsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RatingQuestionsEntity,
,Long> org.springframework.data.querydsl.QuerydslPredicateExecutor<RatingQuestionsEntity>
,org.springframework.data.repository.Repository<RatingQuestionsEntity,
Long>
@Repository
public interface RatingQuestionsRepository
extends org.springframework.data.repository.CrudRepository<RatingQuestionsEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<RatingQuestionsEntity>
RatingSummaryRepository
This repository interface to used to interact with database for database CRUD operations.
-
Method Summary
Modifier and TypeMethodDescriptionfindByCollectionId
(long collectionId) findById
(long id) findByIdAndCollectionId
(long id, long collectionId) findByIdAndCollectionIdAndStatus
(long id, long collectionId, RatingQandAStatus status) findByIdAndStatus
(long id, RatingQandAStatus active) findByItemIdAndCollectionId
(String itemId, long collectionId) findByQuestionsAndItemIdAndCollectionId
(String questions, String itemId, long collectionId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findById
-
findByItemIdAndCollectionId
-
findByCollectionId
-
findByQuestionsAndItemIdAndCollectionId
Optional<RatingQuestionsEntity> findByQuestionsAndItemIdAndCollectionId(String questions, String itemId, long collectionId) -
findByIdAndCollectionId
-
findByIdAndStatus
-
findByIdAndCollectionIdAndStatus
Optional<RatingQuestionsEntity> findByIdAndCollectionIdAndStatus(long id, long collectionId, RatingQandAStatus status)
-