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 Summary
Modifier and TypeMethodDescriptionfindAllByEmail(String email) findAllByUser(User user) findByCourseAndGithubId(Course course, int githubId) findByCourseAndGithubLogin(Course course, String githubLogin) findByCourseId(Long courseId) findByCourseIdAndEmail(Long courseId, String email) findByCourseIdAndRosterStatusInOrderByFirstNameAscLastNameAscIgnoreCase(Long courseId, List<RosterStatus> statuses) findByCourseIdAndStudentId(Long courseId, String studentId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAllByEmail
-
findByCourseId
-
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
-
findByCourseIdAndEmail
-
findByCourseAndGithubId
-
findByCourseAndGithubLogin
-
findAllByUser
-