From ca82fe5e55034bee5450165c295e511a881c1f39 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:44 +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 --- .../java/one/nem/lacerta/source/database/dao/TagDao.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/database/dao/TagDao.java b/source/src/main/java/one/nem/lacerta/source/database/dao/TagDao.java index 8a585178..dd292928 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/dao/TagDao.java +++ b/source/src/main/java/one/nem/lacerta/source/database/dao/TagDao.java @@ -16,13 +16,13 @@ public interface TagDao { // Select - @Query("SELECT * FROM TagEntity WHERE id = :id") + @Query("SELECT * FROM Tag WHERE id = :id") TagEntity findById(String id); - @Query("SELECT * FROM TagEntity") + @Query("SELECT * FROM Tag") ArrayList findAll(); - @Query("SELECT * FROM TagEntity WHERE id IN (:ids)") + @Query("SELECT * FROM Tag WHERE id IN (:ids)") ArrayList findByIds(ArrayList ids); // Insert @@ -55,6 +55,6 @@ public interface TagDao { @Delete void deleteAll(List tags); - @Query("DELETE FROM TagEntity WHERE id = :id") + @Query("DELETE FROM Tag WHERE id = :id") void deleteById(String id); }