From e8dc956b7d873a2d908c273b7b175b8fe22cc901 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 17 Dec 2023 23:27:34 +0900 Subject: [PATCH] =?UTF-8?q?WIP=20=E3=83=AA=E3=83=9F=E3=83=83=E3=83=88?= =?UTF-8?q?=E3=81=82=E3=82=8A=E3=81=AE=E5=85=A8=E4=BB=B6=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/source/database/dao/DocumentDao.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java b/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java index 12dc0606..265b20bc 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java +++ b/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java @@ -22,6 +22,9 @@ public interface DocumentDao { @Query("SELECT * FROM Document") List findAll(); + @Query("SELECT * FROM Document LIMIT :limit") + List getAllWithLimit(int limit); + @Query("SELECT * FROM Document WHERE id IN (:ids)") List findByIds(List ids);