Interface LuogoRepository

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

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

    Modifier and Type
    Method
    Description
    boolean
    Query per controllare se esiste un Luogo usando il suo nome.
    findByIdLuogo(long idLuogo)
    Query per trovare un Luogo usando il suo id.
    Query per trovare un Luogo usando il suo nome.

    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

    • findByIdLuogo

      Luogo findByIdLuogo(long idLuogo)
      Query per trovare un Luogo usando il suo id.
      Parameters:
      idLuogo - Id del Luogo
      Returns:
      Luogo
    • existsByNome

      boolean existsByNome(String nome)
      Query per controllare se esiste un Luogo usando il suo nome.
      Parameters:
      nome - Nome del Luogo
      Returns:
      true/false
    • findByNome

      Luogo findByNome(String nome)
      Query per trovare un Luogo usando il suo nome.
      Parameters:
      nome - Nome del luogo
      Returns:
      Luogo