Interface UtenteRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Utente,,Long> org.springframework.data.jpa.repository.JpaRepository<Utente,,Long> org.springframework.data.repository.ListCrudRepository<Utente,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Utente,,Long> org.springframework.data.repository.PagingAndSortingRepository<Utente,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Utente>,org.springframework.data.repository.Repository<Utente,Long>
public interface UtenteRepository
extends org.springframework.data.jpa.repository.JpaRepository<Utente,Long>
Repository per la gestione della persistenza delle entita' Utente.
Fornisce i metodi CRUD standard ereditati da JpaRepository e query
personalizzate
per l'accesso ai dati degli utenti nel database.
-
Method Summary
Modifier and TypeMethodDescriptionfindByEmail(String email) Cerca un utente specifico utilizzando il suo indirizzo email.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
-
findByEmail
Cerca un utente specifico utilizzando il suo indirizzo email. Questo metodo e' utile per le operazioni di login o per verificare l'esistenza di un utente durante la registrazione.- Parameters:
email- L'indirizzo email dell'utente da cercare.- Returns:
- Un Optional contenente l'Utente se trovato, altrimenti un Optional vuoto.
-