Interface CompanyConfigValueRepository

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

@Repository public interface CompanyConfigValueRepository extends org.springframework.data.jpa.repository.JpaRepository<CompanyConfigurationValues,Long>
Company Configuration Values repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get all Company Configuration values by Config Value Id and Company.

    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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    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

    • findAllByConfigurationValueId

      @Query("SELECT ccv FROM CompanyConfigurationValues ccv WHERE ccv.configurationValue.id in :cvIds AND ccv.companyId = :companyId") List<CompanyConfigurationValues> findAllByConfigurationValueId(@Param("cvIds") List<Long> cvIds, @Param("companyId") Integer companyId)
      Get all Company Configuration values by Config Value Id and Company.
      Parameters:
      cvIds - Configuation Value identifiers.
      companyId - company identifier.
      Returns:
      List of Company Configuraiton Values.