findAllExpiredNotifications

@Query(value = " SELECT * FROM notification WHERE "date" < current_timestamp + INTERVAL '- 2 WEEK'; ", nativeQuery = true)
abstract fun findAllExpiredNotifications(): List<Notification>

Returns notifications which are older than 2 weeks