diff --git a/src/main/java/ru/ulstu/grant/model/repository/GrantRepository.java b/src/main/java/ru/ulstu/grant/model/repository/GrantRepository.java new file mode 100644 index 0000000..bd1067d --- /dev/null +++ b/src/main/java/ru/ulstu/grant/model/repository/GrantRepository.java @@ -0,0 +1,10 @@ +package ru.ulstu.grant.model.repository; + +import org.springframework.data.jpa.repository.JpaRepository; +import ru.ulstu.grant.model.Grant; + +public interface GrantRepository extends JpaRepository { + +// @Query("SELECT p FROM Paper p WHERE (:author IS NULL OR :author MEMBER OF p.authors) AND (YEAR(p.createDate) = :year OR :year IS NULL)") +// List filter(@Param("author") User author, @Param("year") Integer year); +}