Interface RosterStudentRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<RosterStudent,Long>, org.springframework.data.jpa.repository.JpaRepository<RosterStudent,Long>, org.springframework.data.repository.ListCrudRepository<RosterStudent,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<RosterStudent,Long>, org.springframework.data.repository.PagingAndSortingRepository<RosterStudent,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<RosterStudent>, org.springframework.data.repository.Repository<RosterStudent,Long>

public interface RosterStudentRepository extends org.springframework.data.jpa.repository.JpaRepository<RosterStudent,Long>
  • Method Details

    • findAllByEmail

      List<RosterStudent> findAllByEmail(String email)
    • findByCourseId

      Iterable<RosterStudent> findByCourseId(Long courseId)
    • findByCourseIdOrderByFirstNameAscLastNameAscIgnoreCase

      @Query(" SELECT r\n FROM RosterStudent r\n WHERE r.course.id = :courseId\n ORDER BY LOWER(r.firstName), LOWER(r.lastName)\n") Iterable<RosterStudent> findByCourseIdOrderByFirstNameAscLastNameAscIgnoreCase(Long courseId)
    • findByCourseIdAndRosterStatusInOrderByFirstNameAscLastNameAscIgnoreCase

      @Query(" SELECT r\n FROM RosterStudent r\n WHERE r.course.id = :courseId\n AND r.rosterStatus in :statuses\n ORDER BY LOWER(r.firstName), LOWER(r.lastName)\n") List<RosterStudent> findByCourseIdAndRosterStatusInOrderByFirstNameAscLastNameAscIgnoreCase(Long courseId, List<RosterStatus> statuses)
    • findByCourseIdAndStudentId

      Optional<RosterStudent> findByCourseIdAndStudentId(Long courseId, String studentId)
    • findByCourseIdAndEmail

      Optional<RosterStudent> findByCourseIdAndEmail(Long courseId, String email)
    • findAllByUser

      Iterable<RosterStudent> findAllByUser(User user)