Interface SubscriptionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Subscription,,String> org.springframework.data.jpa.repository.JpaRepository<Subscription,,String> org.springframework.data.repository.PagingAndSortingRepository<Subscription,,String> org.springframework.data.repository.query.QueryByExampleExecutor<Subscription>,org.springframework.data.repository.Repository<Subscription,String>
@Repository
public interface SubscriptionRepository
extends org.springframework.data.jpa.repository.JpaRepository<Subscription,String>
-
Method Summary
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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findByTopic
-
findBySubscriber
-
countSubscribers
@Query(value="select count(distinct subscriber) from subscriptions", nativeQuery=true) long countSubscribers()
-