Interface ApiKeyRepo

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

    @Repository
    public interface ApiKeyRepo
    extends org.springframework.data.jpa.repository.JpaRepository<ApiKey,​String>
    • Method Detail

      • findAll

        List<ApiKey> findAll()
        Specified by:
        findAll in interface org.springframework.data.repository.CrudRepository<ApiKey,​String>
        Specified by:
        findAll in interface org.springframework.data.jpa.repository.JpaRepository<ApiKey,​String>
      • findAllKeysToMigrate

        @Query("SELECT a FROM ApiKey a WHERE (a.keycloakId is null OR a.keycloakId = \'to-migrate\')")
        List<ApiKey> findAllKeysToMigrate()