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 Summary
Modifier 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.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
-
deleteByFiscalCode
Delete the citizen with the given fiscal code.- Parameters:
fiscalCode- the fiscal code of the citizen to delete
-
findByFiscalCode
Find 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
-