Package it.univr.passportease.repository
Interface CitizenRepository
- All Superinterfaces:
- org.springframework.data.repository.CrudRepository<Citizen,,- UUID> - org.springframework.data.jpa.repository.JpaRepository<Citizen,,- UUID> - org.springframework.data.repository.ListCrudRepository<Citizen,,- UUID> - org.springframework.data.repository.ListPagingAndSortingRepository<Citizen,,- UUID> - org.springframework.data.repository.PagingAndSortingRepository<Citizen,,- UUID> - org.springframework.data.repository.query.QueryByExampleExecutor<Citizen>,- org.springframework.data.repository.Repository<Citizen,- UUID> 
@Repository
public interface CitizenRepository
extends org.springframework.data.jpa.repository.JpaRepository<Citizen,UUID> 
Repository for 
Citizen entity.- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteByFiscalCode(String fiscalCode) Delete the citizen with the given fiscal code.findByFiscalCode(String fiscalCode) Find the citizen with the given fiscal code.Methods inherited from interface org.springframework.data.repository.CrudRepositorycount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepositorydeleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepositoryfindAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepositoryfindAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepositoryfindAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutorcount, exists, findAll, findBy, findOne
- 
Method Details- 
deleteByFiscalCodeDelete the citizen with the given fiscal code.- Parameters:
- fiscalCode- the fiscal code of the citizen to delete
 
- 
findByFiscalCodeFind the citizen with the given fiscal code.- Parameters:
- fiscalCode- the fiscal code of the citizen to find
- Returns:
- an Optionalcontaining the citizen with the given fiscal code
 
 
-