Interface LessonScheduleJpaRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<LessonSchedule,
,Integer> org.springframework.data.jpa.repository.JpaRepository<LessonSchedule,
,Integer> org.springframework.data.repository.ListCrudRepository<LessonSchedule,
,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<LessonSchedule,
,Integer> org.springframework.data.repository.PagingAndSortingRepository<LessonSchedule,
,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<LessonSchedule>
,org.springframework.data.repository.Repository<LessonSchedule,
Integer>
public interface LessonScheduleJpaRepository
extends org.springframework.data.jpa.repository.JpaRepository<LessonSchedule,Integer>
LessonScheduleJpaRepository는 LessonSchedule 엔티티에 대한 데이터 액세스 기능을 제공.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByLessonAndStartAt
(Lesson lesson, LocalDateTime nextClassTime) findAllByLesson_ApplicationGroup_TuteeAndStartAtBetween
(User tutee, LocalDateTime startAt, LocalDateTime endAt) findFirstByLessonAndStatusOrderByStartAtDesc
(Lesson lesson, Status status) 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
-
existsByLessonAndStartAt
-
findFirstByLesson_ApplicationGroup_Tutee_IdAndStatusOrderByIdDesc
Optional<LessonSchedule> findFirstByLesson_ApplicationGroup_Tutee_IdAndStatusOrderByIdDesc(Integer tuteeId, Status status) -
findAllByLesson_ApplicationGroup_TuteeAndStartAtBetween
List<LessonSchedule> findAllByLesson_ApplicationGroup_TuteeAndStartAtBetween(User tutee, LocalDateTime startAt, LocalDateTime endAt) -
findFirstByLessonAndStatusOrderByStartAtDesc
-