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>
The RecommendationRequestRepository is a repository for RecommendationRequest entities.
-
Method Summary
Modifier and TypeMethodDescriptionfindByProfessorId
(Long professorId) This method returns all RecommendationRequest entities with a given professorId.findByRequesterId
(Long requesterId) This method returns all RecommendationRequest entities 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
-
findByRequesterId
This method returns all RecommendationRequest entities with a given requesterId.- Parameters:
requesterId
- id of the person making the reqest- Returns:
- all RecommendationRequest entities with a given requesterName
-
findByProfessorId
This method returns all RecommendationRequest entities with a given professorId.- Parameters:
professorId
- id of the professor the request is made to- Returns:
- all RecommendationRequest entities made to the professor
-