Dao修正のクエリ修正

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

View File

@ -10,13 +10,13 @@ import one.nem.lacerta.source.database.entity.LibraryEntity;
@Dao
public interface LibraryDao {
@Query("SELECT * FROM LibraryEntity WHERE id = :id")
@Query("SELECT * FROM Library WHERE id = :id")
LibraryEntity findById(String id);
@Query("SELECT * FROM LibraryEntity")
@Query("SELECT * FROM Library")
List<LibraryEntity> findAll();
@Query("SELECT * FROM LibraryEntity WHERE id IN (:ids)")
@Query("SELECT * FROM Library WHERE id IN (:ids)")
List<LibraryEntity> findByIds(List<String> ids);
// WIP