Interface PatientRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Patient,,Long> org.springframework.data.jpa.repository.JpaRepository<Patient,,Long> org.springframework.data.repository.ListCrudRepository<Patient,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Patient,,Long> org.springframework.data.repository.PagingAndSortingRepository<Patient,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Patient>,org.springframework.data.repository.Repository<Patient,Long>
public interface PatientRepository
extends org.springframework.data.jpa.repository.JpaRepository<Patient,Long>
Repository interface for retrieving and manipulating all Patient objects using their unique Long identifier.
- Version:
- 1.0
- Author:
- Mirna Gama
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<Patient>findPatientsByActiveTrue(org.springframework.data.domain.Pageable pageable) 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
-
findPatientsByActiveTrue
org.springframework.data.domain.Page<Patient> findPatientsByActiveTrue(org.springframework.data.domain.Pageable pageable) - Parameters:
pageable- Pagination information, such as size and page number- Returns:
- A paginated list with active stored patients if successful, or null if there is an error
-