@Repository public interface SubscriptionRepository extends org.springframework.data.jpa.repository.JpaRepository<Subscription,String>
| Modifier and Type | Method and Description |
|---|---|
long |
countSubscribers() |
Iterable<Subscription> |
findBySubscriber(String email) |
Iterable<Subscription> |
findByTopic(String topic) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushfindAllIterable<Subscription> findByTopic(String topic)
Iterable<Subscription> findBySubscriber(String email)
@Query(value="select count(distinct subscriber) from subscriptions",
nativeQuery=true)
long countSubscribers()
Copyright © 2025. All rights reserved.