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 Type
    Method
    Description
    findByProfessorId(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

      Optional<RecommendationRequest> findByRequesterId(Long requesterId)
      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

      Optional<RecommendationRequest> findByProfessorId(Long professorId)
      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