Create GrantRepository

This commit is contained in:
T-Midnight 2018-12-22 18:03:18 +04:00
parent 42d33d1be8
commit eff5344aea

View File

@ -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<Grant, Integer> {
// @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<Paper> filter(@Param("author") User author, @Param("year") Integer year);
}