-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDishes.java
52 lines (40 loc) · 1.01 KB
/
Dishes.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.piyusha.foodorderingapp;
import androidx.room.ColumnInfo;
import androidx.room.Dao;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity(tableName = "menu")
public class Dishes {
@PrimaryKey(autoGenerate = true)
public int tokenid;
@ColumnInfo(name="Dishname")
public String name;
// private String name;
@ColumnInfo(name="Quantity")
public int qty;
//private int qty;
Dishes(int tokenid,String name,int qty) {
this.tokenid=tokenid;
this.name = name;
this.qty=qty;
}
public int getTokenid() {
return tokenid;
}
public void setTokenid(int tokenid) {
this.tokenid = tokenid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setQty(int qty) {
this.qty = qty;
}
public int getQty() {
return qty;
}
}