-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProductDTO.java
More file actions
132 lines (105 loc) · 2.84 KB
/
Copy pathProductDTO.java
File metadata and controls
132 lines (105 loc) · 2.84 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* 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.
*/
package data;
/**
*
* @author thien
*/
public class ProductDTO {
private int id;
private String name;
private String color;
private float price;
private String imaga_link;
private int quantity;
private float weight;
private String category;
private String origin;
private String description;
public ProductDTO(int id, String name, String description, String color, float price, String imaga_link, int quantity, float weight, String category, String origin) {
this.id = id;
this.name = name;
this.color = color;
this.price = price;
this.imaga_link = imaga_link;
this.quantity = quantity;
this.weight = weight;
this.category = category;
this.origin = origin;
this.description = description;
}
public ProductDTO( String name, String description, String color, float price, String imaga_link, int quantity, float weight, String category, String origin) {
this.name = name;
this.color = color;
this.price = price;
this.imaga_link = imaga_link;
this.quantity = quantity;
this.weight = weight;
this.category = category;
this.origin = origin;
this.description = description;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
public String getImaga_link() {
return imaga_link;
}
public void setImaga_link(String imaga_link) {
this.imaga_link = imaga_link;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public float getWeight() {
return weight;
}
public void setWeight(float weight) {
this.weight = weight;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
}