mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
Dao修正のクエリ修正
This commit is contained in:
parent
374986816f
commit
ca82fe5e55
|
@ -16,13 +16,13 @@ public interface TagDao {
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
|
|
||||||
@Query("SELECT * FROM TagEntity WHERE id = :id")
|
@Query("SELECT * FROM Tag WHERE id = :id")
|
||||||
TagEntity findById(String id);
|
TagEntity findById(String id);
|
||||||
|
|
||||||
@Query("SELECT * FROM TagEntity")
|
@Query("SELECT * FROM Tag")
|
||||||
ArrayList<TagEntity> findAll();
|
ArrayList<TagEntity> findAll();
|
||||||
|
|
||||||
@Query("SELECT * FROM TagEntity WHERE id IN (:ids)")
|
@Query("SELECT * FROM Tag WHERE id IN (:ids)")
|
||||||
ArrayList<TagEntity> findByIds(ArrayList<String> ids);
|
ArrayList<TagEntity> findByIds(ArrayList<String> ids);
|
||||||
|
|
||||||
// Insert
|
// Insert
|
||||||
|
@ -55,6 +55,6 @@ public interface TagDao {
|
||||||
@Delete
|
@Delete
|
||||||
void deleteAll(List<TagEntity> tags);
|
void deleteAll(List<TagEntity> tags);
|
||||||
|
|
||||||
@Query("DELETE FROM TagEntity WHERE id = :id")
|
@Query("DELETE FROM Tag WHERE id = :id")
|
||||||
void deleteById(String id);
|
void deleteById(String id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user