Package io.meeds.billing.dao
Interface HubBillingSettingsDAO
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<HubBillingSettingsEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<HubBillingSettingsEntity,,Long> org.springframework.data.repository.ListCrudRepository<HubBillingSettingsEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<HubBillingSettingsEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<HubBillingSettingsEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<HubBillingSettingsEntity>,org.springframework.data.repository.Repository<HubBillingSettingsEntity,Long>
@Repository
public interface HubBillingSettingsDAO
extends org.springframework.data.jpa.repository.JpaRepository<HubBillingSettingsEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindBySpaceId(Long id) findBySubscriptionId(String subscriptionId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findBySpaceId
-
findBySubscriptionId
-
findByPlan_MeterIdIsNotNull
List<HubBillingSettingsEntity> findByPlan_MeterIdIsNotNull() -
findAllByTieredGraduatedPlan
@Query("SELECT s FROM HubBillingSettings s JOIN s.plan p WHERE p.billingScheme = \'tiered\' AND p.tiersMode = \'graduated\'") List<HubBillingSettingsEntity> findAllByTieredGraduatedPlan()
-