Interface PatientRepository
- All Superinterfaces:
CrudRepository<Patient,,Long> GenericRepository<Patient,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByNameWithQuery(String name) findByNameWithQuery(String name) voidupdateAppointmentsByName(String name, List<String> appointments) Methods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, save, saveAll, update, updateAll
-
Method Details
-
findByNameWithQuery
@Query("select * from patient where name = :name") Optional<PatientDto> findByNameWithQuery(String name) -
findAllByNameWithQuery
@Query("select * from patient where name = :name") List<PatientDto> findAllByNameWithQuery(String name) -
updateAppointmentsByName
-