mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Readd @Notnull for primary keys
This commit is contained in:
parent
7e8ce3d5f6
commit
4f56964a58
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import androidx.room.PrimaryKey;
|
|||
@Entity(tableName = "drugs")
|
||||
public class Medicine {
|
||||
@PrimaryKey
|
||||
private Integer _id;
|
||||
@NonNull private Integer _id;
|
||||
private String cis;
|
||||
private String cip13;
|
||||
private String cip7;
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Date;
|
|||
@Entity(tableName = "prescriptions")
|
||||
public class Prescription implements Serializable {
|
||||
@PrimaryKey
|
||||
private String cis;
|
||||
@NonNull private String cis;
|
||||
private String cip13;
|
||||
private String name;
|
||||
private String administration_mode;
|
||||
|
|
Loading…
Reference in a new issue