From eff5344aeabf129a4a9e4755a1ccf1c9e9e2c9ce Mon Sep 17 00:00:00 2001 From: T-Midnight Date: Sat, 22 Dec 2018 18:03:18 +0400 Subject: [PATCH] Create GrantRepository --- .../ulstu/grant/model/repository/GrantRepository.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/ru/ulstu/grant/model/repository/GrantRepository.java 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); +}