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
5f731268b5
commit
374986816f
|
@ -16,13 +16,13 @@ public interface DocumentDao {
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
|
|
||||||
@Query("SELECT * FROM DocumentEntity WHERE id = :id")
|
@Query("SELECT * FROM Document WHERE id = :id")
|
||||||
DocumentEntity findById(String id);
|
DocumentEntity findById(String id);
|
||||||
|
|
||||||
@Query("SELECT * FROM DocumentEntity")
|
@Query("SELECT * FROM Document")
|
||||||
List<DocumentEntity> findAll();
|
List<DocumentEntity> findAll();
|
||||||
|
|
||||||
@Query("SELECT * FROM DocumentEntity WHERE id IN (:ids)")
|
@Query("SELECT * FROM Document WHERE id IN (:ids)")
|
||||||
List<DocumentEntity> findByIds(List<String> ids);
|
List<DocumentEntity> findByIds(List<String> ids);
|
||||||
|
|
||||||
// Insert
|
// Insert
|
||||||
|
@ -56,6 +56,6 @@ public interface DocumentDao {
|
||||||
@Delete
|
@Delete
|
||||||
void deleteAll(List<DocumentEntity> documents);
|
void deleteAll(List<DocumentEntity> documents);
|
||||||
|
|
||||||
@Query("DELETE FROM DocumentEntity WHERE id = :id")
|
@Query("DELETE FROM Document WHERE id = :id")
|
||||||
void deleteById(String id);
|
void deleteById(String id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user