Skip to content

Commit

Permalink
feat : 페이지네이션 가능한 메소드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ekgns33 committed Oct 1, 2024
1 parent 27acb6b commit d3ff727
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package gdsc.konkuk.platformcore.domain.email.repository;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import gdsc.konkuk.platformcore.domain.email.entity.EmailTask;
Expand All @@ -10,4 +12,9 @@ public interface EmailTaskRepository extends JpaRepository<EmailTask, Long> {

@Query("SELECT e FROM EmailTask e WHERE e.isSent = false")
List<EmailTask> findAllWhereNotSent();

@Query("SELECT e FROM EmailTask e WHERE e.isSent = false")
List<EmailTask> findAll();

Page<EmailTask> findAll(Pageable pageable);
}

0 comments on commit d3ff727

Please sign in to comment.