Readd @Notnull for primary keys

This commit is contained in:
jacques 2022-06-29 20:28:20 +02:00
parent 7e8ce3d5f6
commit 4f56964a58
2 changed files with 2 additions and 2 deletions

View file

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

View file

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