Use drugs tablename

This commit is contained in:
jacques 2022-03-17 18:27:01 +01:00
parent 7f43b84b2e
commit b2f54a81c4

View file

@ -9,12 +9,12 @@ import java.util.List;
@Dao @Dao
public interface MedicinesDAO { public interface MedicinesDAO {
@Query("SELECT * FROM medicines") @Query("SELECT * FROM drugs")
List<Medicine> getAllMedicines(); List<Medicine> getAllMedicines();
@Query("SELECT * FROM medicines WHERE cip13 = :cip13") @Query("SELECT * FROM drugs WHERE cip13 = :cip13")
Medicine getMedicineByCIP13(String cip13); Medicine getMedicineByCIP13(String cip13);
@Query("SELECT count(*) FROM medicines") @Query("SELECT count(*) FROM drugs")
int getMedicineCount(); int getMedicineCount();
} }