From 35085f19c766cdbfb68094e7bcb167c695ba76ef Mon Sep 17 00:00:00 2001 From: jacques Date: Tue, 8 Mar 2022 19:48:47 +0100 Subject: [PATCH] Change insert to insertAll. --- app/src/main/java/net/foucry/pilldroid/dao/MedicDAO.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/dao/MedicDAO.java b/app/src/main/java/net/foucry/pilldroid/dao/MedicDAO.java index bf1b3fc..147d566 100644 --- a/app/src/main/java/net/foucry/pilldroid/dao/MedicDAO.java +++ b/app/src/main/java/net/foucry/pilldroid/dao/MedicDAO.java @@ -13,7 +13,7 @@ import java.util.List; @Dao public interface MedicDAO { @Insert - void insert(Medic... medics); + void insertAll(Medic... medics); @Update void update(Medic... medics); @@ -25,8 +25,8 @@ public interface MedicDAO { @Query("SELECT * FROM medics") List getMedics(); - @Query("SELECT * FROM medics WHERE id = :id") - Medic getMedicBy(Long id); +/* @Query("SELECT * FROM medics WHERE id = :id") + Medic getMedicBy(Long id);*/ @Query("SELECT * FROM medics WHERE cip13 = :cip13") Medic getMedicByCIP13(String cip13);