Interface LessonRepository

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

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

    Modifier and Type
    Method
    Description
    The lessons of a course in one status, in reading order.
    The lessons of a course in reading order (position ascending).

    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

    • findByCourseOrderByPositionAsc

      List<Lesson> findByCourseOrderByPositionAsc(Course course)
      The lessons of a course in reading order (position ascending).
    • findByCourseAndStatusOrderByPositionAsc

      List<Lesson> findByCourseAndStatusOrderByPositionAsc(Course course, PublicationStatus status)
      The lessons of a course in one status, in reading order.