Interface RatingRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RatingEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<RatingEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<RatingEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<RatingEntity>
,org.springframework.data.repository.Repository<RatingEntity,
Long>
@Repository
public interface RatingRepository
extends org.springframework.data.jpa.repository.JpaRepository<RatingEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByDocId
(Integer docId) findAllByUserIdOrderById
(Integer userId) findByUserIdAndDocIdAndInsertDateGreaterThanEqualOrderByInsertDateDesc
(Integer userId, Integer docId, Date insertDate) findByUserIdAndDocIdOrderByInsertDateDesc
(Integer userId, Integer docId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
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
-
findAllByOrderByIdAsc
List<RatingEntity> findAllByOrderByIdAsc() -
findById
- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<RatingEntity,
Long>
-
findAllByUserIdOrderById
-
findAllByDocId
-
findByUserIdAndDocIdOrderByInsertDateDesc
-
findByUserIdAndDocIdAndInsertDateGreaterThanEqualOrderByInsertDateDesc
Optional<RatingEntity> findByUserIdAndDocIdAndInsertDateGreaterThanEqualOrderByInsertDateDesc(Integer userId, Integer docId, Date insertDate)
-