Interface EnrollmentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Enrollment,,EnrollmentId> org.springframework.data.jpa.repository.JpaRepository<Enrollment,,EnrollmentId> org.springframework.data.repository.ListCrudRepository<Enrollment,,EnrollmentId> org.springframework.data.repository.ListPagingAndSortingRepository<Enrollment,,EnrollmentId> org.springframework.data.repository.PagingAndSortingRepository<Enrollment,,EnrollmentId> org.springframework.data.repository.query.QueryByExampleExecutor<Enrollment>,org.springframework.data.repository.Repository<Enrollment,EnrollmentId>
public interface EnrollmentRepository
extends org.springframework.data.jpa.repository.JpaRepository<Enrollment,EnrollmentId>
-
Method Summary
Modifier and TypeMethodDescriptionfindByCourse(Course course) The roster of a course.findByUser(User user) A student's enrollments (their personal course list).findByUserAndCourse(User user, Course course) The single enrollment of a student in a course, if any.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
-
findByUser
A student's enrollments (their personal course list). -
findByUserAndCourse
The single enrollment of a student in a course, if any. -
findByCourse
The roster of a course.
-