mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Change insert to insertAll.
This commit is contained in:
parent
bbec058a6a
commit
35085f19c7
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue