Package edu.ucsb.cs156.rec.repositories
Interface RecommendationRequestRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RecommendationRequest,
,Long> org.springframework.data.repository.Repository<RecommendationRequest,
Long>
@Repository
public interface RecommendationRequestRepository
extends org.springframework.data.repository.CrudRepository<RecommendationRequest,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByRequesterId
(long requesterId) This method returns all the RecommendationRequests with a given requesterId.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findAllByRequesterId
This method returns all the RecommendationRequests with a given requesterId.- Parameters:
requesterId
- id of the requester- Returns:
- an iterable of RecommendationRequests
-