mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +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")
|
@Entity(tableName = "drugs")
|
||||||
public class Medicine {
|
public class Medicine {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
private Integer _id;
|
@NonNull private Integer _id;
|
||||||
private String cis;
|
private String cis;
|
||||||
private String cip13;
|
private String cip13;
|
||||||
private String cip7;
|
private String cip7;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Date;
|
||||||
@Entity(tableName = "prescriptions")
|
@Entity(tableName = "prescriptions")
|
||||||
public class Prescription implements Serializable {
|
public class Prescription implements Serializable {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
private String cis;
|
@NonNull private String cis;
|
||||||
private String cip13;
|
private String cip13;
|
||||||
private String name;
|
private String name;
|
||||||
private String administration_mode;
|
private String administration_mode;
|
||||||
|
|
Loading…
Reference in a new issue