package ru.ulstu.timeline.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import ru.ulstu.timeline.model.Event;

import java.util.List;

public interface EventRepository extends JpaRepository<Event, Integer> {
    @Query("SELECT e FROM Event e WHERE e.executeDate = CURRENT_DATE")
    List<Event> findByCurrentDate();
}
