-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrderDTO.java
More file actions
118 lines (91 loc) · 2.42 KB
/
Copy pathOrderDTO.java
File metadata and controls
118 lines (91 loc) · 2.42 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package data;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author thien
*/
public class OrderDTO {
private int id;
private int user_id;
private String date;
private int status;
private int quantity;
private int product_id;
private float totalPrice;
private String details;
public OrderDTO(int id, int user_id, String date, int status, int quantity, int product_id, float totalPrice, String details) {
this.id = id;
this.user_id = user_id;
this.date = date;
this.status = status;
this.quantity = quantity;
this.product_id = product_id;
this.totalPrice = totalPrice;
this.details = details;
}
public OrderDTO(int id, String date, int status, int product_id) {
this.id = id;
this.date = date;
this.status = status;
this.product_id = product_id;
}
public OrderDTO(int id, int quantity, int product_id, float totalPrice, String details) {
this.id = id;
this.quantity = quantity;
this.product_id = product_id;
this.totalPrice = totalPrice;
this.details = details;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getUser_id() {
return user_id;
}
public void setUser_id(int user_id) {
this.user_id = user_id;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public int getProduct_id() {
return product_id;
}
public void setProduct_id(int product_id) {
this.product_id = product_id;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public float getTotalPrice() {
return totalPrice;
}
public void setTotalPrice(float totalPrice) {
this.totalPrice = totalPrice;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
this.details = details;
}
}