Interface IdaUinHashSaltRepo

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<IdaUinHashSalt,​Integer>, org.springframework.data.jpa.repository.JpaRepository<IdaUinHashSalt,​Integer>, org.springframework.data.repository.PagingAndSortingRepository<IdaUinHashSalt,​Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<IdaUinHashSalt>, org.springframework.data.repository.Repository<IdaUinHashSalt,​Integer>

    @Repository
    public interface IdaUinHashSaltRepo
    extends org.springframework.data.jpa.repository.JpaRepository<IdaUinHashSalt,​Integer>
    The Interface IdaUinHashSaltRepo.
    Author:
    Arun Bose S
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String retrieveSaltById​(Integer id)
      The Query to retrieve salt by passing id as parameter.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • retrieveSaltById

        @Cacheable(value="uin_hash_salt",
                   unless="#result == null")
        @Query("select salt from IdaUinHashSalt where id = :id")
        String retrieveSaltById​(@Param("id")
                                Integer id)
        The Query to retrieve salt by passing id as parameter.
        Parameters:
        id - the id
        Returns:
        String salt