Change insert to insertAll.

This commit is contained in:
jacques 2022-03-08 19:48:47 +01:00
parent bbec058a6a
commit 35085f19c7

View file

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