Interface ReviewRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Review,Long>, org.springframework.data.repository.Repository<Review,Long>

@Repository public interface ReviewRepository extends org.springframework.data.repository.CrudRepository<Review,Long>
The ReviewRepository is a repository for Review entities
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByStatus(ModerationStatus moderationStatus)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findByReviewer

      Iterable<Review> findByReviewer(User user)
      Parameters:
      user -
      Returns:
      all reviews that have come from a single reviewer, ex say this user has made a few reviews over the past year well then this method will return only the reviews that this user has sent
    • findByStatus

      Iterable<Review> findByStatus(ModerationStatus moderationStatus)