it.reply.healty.innovapuglia.mstaccuino.database.repository

## Interface PazientiRepository

- All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Paziente,String>, org.springframework.data.jpa.repository.JpaRepository<Paziente,String>, org.springframework.data.repository.PagingAndSortingRepository<Paziente,String>, org.springframework.data.repository.query.QueryByExampleExecutor<Paziente>, org.springframework.data.repository.Repository<Paziente,String>

      @Repository
      public interface PazientiRepository
      extends org.springframework.data.jpa.repository.JpaRepository<Paziente,String>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Optional<Paziente>` | `findByCdFiscale(String cdFiscale)` Recupera una persona tramite il suo codice fiscale, se presente.

    - ### Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

      `deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush`

    - ### Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

      `findAll`

    - ### 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.repository.query.QueryByExampleExecutor

      `count, exists, findAll, findBy, findOne`

- - ### Method Detail

    - #### findByCdFiscale

          @Query(value="FROM Paziente p WHERE p.cdFiscale = :cdFiscale")
          Optional<Paziente> findByCdFiscale(@Param(value="cdFiscale")
                                                                                                             String cdFiscale)

      Recupera una persona tramite il suo codice fiscale, se presente.
      Parameters:
        `cdFiscale` - Codice fiscale della persona
      Returns:
        Optional contenente la persona, se trovata

Copyright © 2024. All rights reserved.