public interface AdminNotificationReceiverRepository extends org.youngmonkeys.ezyplatform.repo.NotificationReceiverRepository, com.tvd12.ezydata.database.EzyDatabaseRepository<Long,org.youngmonkeys.ezyplatform.entity.NotificationReceiver>
| Modifier and Type | Method and Description |
|---|---|
long |
countUnreadNotificationsByToAdminId(long toAdminId) |
org.youngmonkeys.ezyplatform.entity.NotificationReceiver |
findByNotificationIdAndToAdminId(long notificationId,
long toAdminId) |
List<org.youngmonkeys.ezyplatform.entity.NotificationReceiver> |
findUnreadNotificationsByToAdminId(long adminId,
long notificationIdExclusive,
com.tvd12.ezyfox.util.Next next) |
containsById, findById, findByIdOptionalcontainsByField, findByField, findByFieldOptionalfindListByField, findListByFieldorg.youngmonkeys.ezyplatform.entity.NotificationReceiver findByNotificationIdAndToAdminId(long notificationId,
long toAdminId)
@EzyQuery(value="SELECT e FROM NotificationReceiver e WHERE e.toAdminId = ?0 AND e.readAt is NULL AND e.notificationId < ?1") List<org.youngmonkeys.ezyplatform.entity.NotificationReceiver> findUnreadNotificationsByToAdminId(long adminId, long notificationIdExclusive, com.tvd12.ezyfox.util.Next next)
@EzyQuery(value="SELECT count(*) FROM NotificationReceiver e WHERE e.toAdminId = ?0 AND e.readAt is NULL") long countUnreadNotificationsByToAdminId(long toAdminId)
Copyright © 2024 Young Monkeys. All rights reserved.