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
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findAllByStudentId
- Parameters:
studentId
-- 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
-