From 374986816f50dc05f46d32f6d85f1b4ca3c801f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 11:13:25 +0900 Subject: [PATCH] =?UTF-8?q?Dao=E4=BF=AE=E6=AD=A3=E3=81=AE=E3=82=AF?= =?UTF-8?q?=E3=82=A8=E3=83=AA=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/database/dao/DocumentDao.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 6503d67e..12dc0606 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 @@ -16,13 +16,13 @@ public interface DocumentDao { // Select - @Query("SELECT * FROM DocumentEntity WHERE id = :id") + @Query("SELECT * FROM Document WHERE id = :id") DocumentEntity findById(String id); - @Query("SELECT * FROM DocumentEntity") + @Query("SELECT * FROM Document") List findAll(); - @Query("SELECT * FROM DocumentEntity WHERE id IN (:ids)") + @Query("SELECT * FROM Document WHERE id IN (:ids)") List findByIds(List ids); // Insert @@ -56,6 +56,6 @@ public interface DocumentDao { @Delete void deleteAll(List documents); - @Query("DELETE FROM DocumentEntity WHERE id = :id") + @Query("DELETE FROM Document WHERE id = :id") void deleteById(String id); }