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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods 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
-
findAllByOrderByIdAsc
List<RatingEntity> findAllByOrderByIdAsc() -
findById
- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<RatingEntity,Long>
-
findAllByUserIdOrderById
-
findAllByDocId
-
findByUserIdAndDocIdOrderByInsertDateDesc
-
findByUserIdAndDocIdAndInsertDateGreaterThanEqualOrderByInsertDateDesc
Optional<RatingEntity> findByUserIdAndDocIdAndInsertDateGreaterThanEqualOrderByInsertDateDesc(Integer userId, Integer docId, Date insertDate)
-