Interface LuogoTrovatoRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<LuogoTrovato,,LuogoTrovatoKey> org.springframework.data.jpa.repository.JpaRepository<LuogoTrovato,,LuogoTrovatoKey> org.springframework.data.repository.ListCrudRepository<LuogoTrovato,,LuogoTrovatoKey> org.springframework.data.repository.ListPagingAndSortingRepository<LuogoTrovato,,LuogoTrovatoKey> org.springframework.data.repository.PagingAndSortingRepository<LuogoTrovato,,LuogoTrovatoKey> org.springframework.data.repository.query.QueryByExampleExecutor<LuogoTrovato>,org.springframework.data.repository.Repository<LuogoTrovato,LuogoTrovatoKey>
@Repository
public interface LuogoTrovatoRepository
extends org.springframework.data.jpa.repository.JpaRepository<LuogoTrovato,LuogoTrovatoKey>
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdRicerca(Long idRicerca) Query custom per recuperare la lista dei luoghi trovati da una determinata ricerca tramite l'id.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
-
findByIdRicerca
@Query("SELECT l FROM LuogoTrovato l WHERE l.idLuogoTrovato.idRicerca=?1") List<LuogoTrovato> findByIdRicerca(Long idRicerca) Query custom per recuperare la lista dei luoghi trovati da una determinata ricerca tramite l'id.- Parameters:
idRicerca- Id della Ricerca- Returns:
- Lista di luoghi trovati in una ricerca
-