package gc.mda.kcg.domain.event;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PredictionAlertRepository extends JpaRepository<PredictionAlert, Long> {

    List<PredictionAlert> findByEventIdOrderBySentAtDesc(Long eventId);

    Page<PredictionAlert> findAllByOrderBySentAtDesc(Pageable pageable);
}
