Interface RicercaRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Ricerca,Long>, org.springframework.data.jpa.repository.JpaRepository<Ricerca,Long>, org.springframework.data.repository.ListCrudRepository<Ricerca,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Ricerca,Long>, org.springframework.data.repository.PagingAndSortingRepository<Ricerca,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Ricerca>, org.springframework.data.repository.Repository<Ricerca,Long>

@Repository public interface RicercaRepository extends org.springframework.data.jpa.repository.JpaRepository<Ricerca,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    findByIdRicerca(Long idRicerca)
    Query per trovare una Ricerca tramite il suo id.
    findByIdRicercaAndIdUtente(long idRicerca, long idUtente)
    Query per trovare una Ricerca fatta da un utente.
    findByIdUtente(Long idUtente)
    Query per trovare la lista delle ricerche di un utente.

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

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

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByIdRicerca

      Ricerca findByIdRicerca(Long idRicerca)
      Query per trovare una Ricerca tramite il suo id.
      Parameters:
      idRicerca - Id della Ricerca
      Returns:
      Ricerca
    • findByIdUtente

      List<Ricerca> findByIdUtente(Long idUtente)
      Query per trovare la lista delle ricerche di un utente.
      Parameters:
      idUtente - Id dell' Utente
      Returns:
      Lista di ricerche
    • findByIdRicercaAndIdUtente

      Ricerca findByIdRicercaAndIdUtente(long idRicerca, long idUtente)
      Query per trovare una Ricerca fatta da un utente.
      Parameters:
      idRicerca - Id della Ricerca
      idUtente - Id dell' Utente
      Returns:
      Ricerca