Interface EsitoRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Esito,Integer>, org.springframework.data.repository.Repository<Esito,Integer>

public interface EsitoRepository extends org.springframework.data.repository.CrudRepository<Esito,Integer>
Repository for esito entities and custom queries.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an esito by label.
    int
    updateEsito(Integer esitoId, String esito)
    Updates an esito label via native SQL.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findEsitoByEsitoLike

      Esito findEsitoByEsitoLike(String esito)
      Finds an esito by label.
    • updateEsito

      @Transactional @Modifying @Query(value="UPDATE ESITI\nSET\n ESITO = :esito\nWHERE ID = :esitoId\n", nativeQuery=true) int updateEsito(Integer esitoId, String esito)
      Updates an esito label via native SQL.