Interface DataTutorScheduleRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TutorScheduleEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TutorScheduleEntity,
,Long> org.springframework.data.repository.Repository<TutorScheduleEntity,
Long>
@Repository
public interface DataTutorScheduleRepository
extends org.springframework.data.repository.CrudRepository<TutorScheduleEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<TutorScheduleEntity,Long>
JPA repository for managing
TutorScheduleEntity
entities in the database. Extends JpaRepository
and PagingAndSortingRepository
to
provide CRUD operations and pagination.-
Method Summary
Modifier and TypeMethodDescriptionfindTutorScheduleEntitiesByTutor_Id
(Long tutorId) Retrieves set of schedules by tutorId.org.springframework.data.domain.Page
<TutorScheduleEntity> findTutorScheduleEntitiesByTutor_Id
(Long tutorId, org.springframework.data.domain.Pageable pageable) Retrieves a paginated list of schedules by tutorId.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findTutorScheduleEntitiesByTutor_Id
org.springframework.data.domain.Page<TutorScheduleEntity> findTutorScheduleEntitiesByTutor_Id(Long tutorId, org.springframework.data.domain.Pageable pageable) Retrieves a paginated list of schedules by tutorId.- Parameters:
tutorId
- the unique identifier that owns that schedulepageable
- an object specifying pagination parameters- Returns:
- a
Page
containing requested schedules
-
findTutorScheduleEntitiesByTutor_Id
Retrieves set of schedules by tutorId.- Parameters:
tutorId
- the unique identifier that owns that schedule- Returns:
- a
Set<TutorScheduleEntity>
containing schedules
-