Interface AssignmentRepository

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

public interface AssignmentRepository extends org.springframework.data.jpa.repository.JpaRepository<Assignment, Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    The assignments of a course, sorted by repository prefix.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByCourseIdOrderByRepoPrefixAsc

      List<Assignment> findByCourseIdOrderByRepoPrefixAsc(Long courseId)
      The assignments of a course, sorted by repository prefix.
      Parameters:
      courseId - the id of the course
      Returns:
      the assignments, empty if there are none