NotificationRepository

@Repository
interface NotificationRepository : JpaRepository<Notification, Long>

알림 레포지토리

Functions

Link copied to clipboard
abstract fun count(): Long
abstract fun <S : Notification> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: Notification)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: MutableIterable<Notification>)
Link copied to clipboard
abstract fun deleteAllById(ids: MutableIterable<Long>)
Link copied to clipboard
Link copied to clipboard
abstract fun deleteAllInBatch()
Link copied to clipboard
abstract fun deleteById(id: Long)
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Notification> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsById(id: Long): Boolean
Link copied to clipboard
abstract override fun <S : Notification> findAll(example: Example<S>): MutableList<S>
abstract override fun <S : Notification> findAll(example: Example<S>, sort: Sort): MutableList<S>
abstract override fun findAll(): MutableList<Notification>
abstract override fun findAll(sort: Sort): MutableList<Notification>
abstract fun findAll(pageable: Pageable): Page<Notification>
abstract fun <S : Notification> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Notification, R : Any> findBy(example: Example<S>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
Link copied to clipboard
abstract fun findById(id: Long): Optional<Notification>
Link copied to clipboard

abstract fun findByReceiverEmailOrderByCreatedAtDesc(email: String, pageable: Pageable): Page<Notification>

수신자 이메일로 알림 조회 (페이징)

Link copied to clipboard
abstract fun <S : Notification> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: Long): Notification
Link copied to clipboard
abstract fun getOne(id: Long): Notification
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Notification> save(entity: S): S
Link copied to clipboard
abstract override fun <S : Notification> saveAll(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Notification> saveAndFlush(entity: S): S