diff --git a/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java b/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java index 7bd987e..97d8ff9 100644 --- a/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java +++ b/app/src/main/java/net/foucry/pilldroid/dao/MedicinesDAO.java @@ -9,12 +9,12 @@ import java.util.List; @Dao public interface MedicinesDAO { - @Query("SELECT * FROM medicines") + @Query("SELECT * FROM drugs") List getAllMedicines(); - @Query("SELECT * FROM medicines WHERE cip13 = :cip13") + @Query("SELECT * FROM drugs WHERE cip13 = :cip13") Medicine getMedicineByCIP13(String cip13); - @Query("SELECT count(*) FROM medicines") + @Query("SELECT count(*) FROM drugs") int getMedicineCount(); }