Dao修正のクエリ修正

This commit is contained in:
ろむねこ 2023-12-14 11:13:25 +09:00
parent 5f731268b5
commit 374986816f
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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);
} }