package com.sajo.teamkerbell.repository;

import com.sajo.teamkerbell.entity.FileDB;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by seongahjo on 2016. 7. 2..
 */
@Repository
public interface FileDBRepository extends JpaRepository<FileDB, Integer> {
    FileDB findByStoredName(String storedName);
}

@@ -78,16 +78,65 @@
 FileDB;%0A
+import org.springframework.data.domain.Pageable;%0A
 import o
@@ -189,16 +189,16 @@
 sitory;%0A
-
 import o
@@ -240,16 +240,40 @@
 itory;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * C
@@ -399,16 +399,16 @@
 eger%3E %7B%0A
-
     File
@@ -446,11 +446,194 @@
 edName);
+%0A%0A    List%3CFileDB%3E findByProjectId(Integer projectId, Pageable pageable);%0A%0A    List%3CFileDB%3E findByProjectIdAndFileType(Integer projectId, FileDB.FileType fileType, Pageable pageable);
 %0A%7D%0A

Add find files, images in repository