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 Type
    Method
    Description
    org.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, 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

    • 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