Interface RatingVotesRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<VotesEntity,
,Long> org.springframework.data.querydsl.QuerydslPredicateExecutor<VotesEntity>
,org.springframework.data.repository.Repository<VotesEntity,
Long>
@Repository
public interface RatingVotesRepository
extends org.springframework.data.repository.CrudRepository<VotesEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<VotesEntity>
RatingVotesRepository
This repository interface to used to interact with database for database CRUD operations.
-
Method Summary
Modifier and TypeMethodDescriptionlong
countByAnswersIdAndVoteType
(long answerId, VoteType voteType) findByAnswersId
(long answerId) findByAnswersIdAndUserId
(long answerId, long userId) findById
(long id) 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
-
countByAnswersIdAndVoteType
-
findByAnswersIdAndUserId
-
findByAnswersId
-