Interface ConfigRepository

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

    public interface ConfigRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Config,​String>
    The ConfigRepository interface declares the repository for the Config domain type.
    Author:
    Marcus Portmann
    • Method Detail

      • deleteByKeyIgnoreCase

        void deleteByKeyIgnoreCase​(String key)
      • existsByKeyIgnoreCase

        boolean existsByKeyIgnoreCase​(String key)
      • findAllByOrderByKeyDesc

        List<Config> findAllByOrderByKeyDesc()
      • findByKeyIgnoreCaseContaining

        List<Config> findByKeyIgnoreCaseContaining​(String filter)
      • getValueByKeyIgnoreCase

        @Query("select c.value from Config c where lower(c.key) = lower(:key)")
        Optional<String> getValueByKeyIgnoreCase​(@Param("key")
                                                 String key)