Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
11
import javax.persistence.NamedQueries;
12
import javax.persistence.NamedQuery;
13
import javax.persistence.Table;
14
 
15
/**
16
 * This class basically contains api details
17
 * 
18
 * @author ashikali
19
 *
20
 */
21
@Entity
22
@Table(name="transaction.lineitem", schema = "transaction")
23
@NamedQueries({
24
	@NamedQuery(name="LineItem.selectAll",query="select li from LineItem li"),
21580 ashik.ali 25
	@NamedQuery(name="LineItem.selectById",query="select li from LineItem li where li.id= :id")
21545 ashik.ali 26
})
27
public class LineItem implements Serializable{
28
 
29
	private static final long serialVersionUID = 1L;
30
 
31
	public LineItem() {
32
	}
33
 
34
	@Id
35
	@Column(name="id", unique=true, updatable=false)
36
	@GeneratedValue(strategy = GenerationType.IDENTITY)
37
	private int id;
38
 
39
	@Column(name = "item_id")
40
	private int itemId;
41
 
42
	@Column(name = "productGroup", length = 100)
43
	private String productGoup;
44
 
45
	@Column(name = "brand", length = 100)
46
	private String brand;
47
 
48
	@Column(name = "model_number", length = 100)
49
	private String modelNumber;
50
 
51
	@Column(name = "model_name", length = 100)
52
	private String modelName;
53
 
54
	@Column(name = "color", length = 20)
55
	private String color;
56
 
57
	@Column(name = "extra_info", length = 100)
58
	private String extraInfo;
59
 
60
	@Column(name = "quantity")
61
	private float quantity;
62
 
63
	@Column(name = "mrp")
64
	private float mrp;
65
 
66
	@Column(name = "unit_price")
67
	private float unitPrice;
68
 
69
	@Column(name = "unit_weight")
70
	private float unitWeight;
71
 
72
	@Column(name = "total_price")
73
	private float totalPrice;
74
 
75
	@Column(name = "transfer_price")
76
	private float transferPrice;
77
 
78
	@Column(name = "totalWeight")
79
	private float totalWeight;
80
 
81
	@Column(name = "order_id")
82
	private int orderId;
83
 
84
	@Column(name = "imei_number", length = 20)
85
	private String imeiNumber;
86
 
87
	@Column(name = "item_number", length = 50)
88
	private String itemNumber;
89
 
90
	@Column(name = "dealText", length = 100)
91
	private String dealText;
92
 
93
	@Column(name = "warranty_expiry_timestamp")
94
	private LocalDateTime warrantyExpiryTimestamp;
95
 
96
	@Column(name = "serial_number", length = 8192)
97
	private String serialNumber;
98
 
99
	@Column(name = "vatRate")
100
	private float vatRate;
101
 
102
	@Column(name = "nlc")
103
	private float nlc;
104
 
105
	@Column(name = "logisticsCost")
106
	private float logisticsCost;
107
 
108
	@Column(name = "codCollectionCharges")
109
	private float codCollectionCharges;
110
 
111
	@Column(name = "returnQty")
112
	private float returnQty;
113
 
114
	@Column(name = "damaged_expiry_timestamp")
115
	private LocalDateTime damagedExpiryTimestamp;
116
 
117
	public int getId() {
118
		return id;
119
	}
120
	public void setId(int id) {
121
		this.id = id;
122
	}
123
	public int getItemId() {
124
		return itemId;
125
	}
126
	public void setItemId(int itemId) {
127
		this.itemId = itemId;
128
	}
129
	public String getProductGoup() {
130
		return productGoup;
131
	}
132
	public void setProductGoup(String productGoup) {
133
		this.productGoup = productGoup;
134
	}
135
	public String getBrand() {
136
		return brand;
137
	}
138
	public void setBrand(String brand) {
139
		this.brand = brand;
140
	}
141
	public String getModelNumber() {
142
		return modelNumber;
143
	}
144
	public void setModelNumber(String modelNumber) {
145
		this.modelNumber = modelNumber;
146
	}
147
	public String getModelName() {
148
		return modelName;
149
	}
150
	public void setModelName(String modelName) {
151
		this.modelName = modelName;
152
	}
153
	public String getColor() {
154
		return color;
155
	}
156
	public void setColor(String color) {
157
		this.color = color;
158
	}
159
	public String getExtraInfo() {
160
		return extraInfo;
161
	}
162
	public void setExtraInfo(String extraInfo) {
163
		this.extraInfo = extraInfo;
164
	}
165
	public float getQuantity() {
166
		return quantity;
167
	}
168
	public void setQuantity(float quantity) {
169
		this.quantity = quantity;
170
	}
171
	public float getMrp() {
172
		return mrp;
173
	}
174
	public void setMrp(float mrp) {
175
		this.mrp = mrp;
176
	}
177
	public float getUnitPrice() {
178
		return unitPrice;
179
	}
180
	public void setUnitPrice(float unitPrice) {
181
		this.unitPrice = unitPrice;
182
	}
183
	public float getUnitWeight() {
184
		return unitWeight;
185
	}
186
	public void setUnitWeight(float unitWeight) {
187
		this.unitWeight = unitWeight;
188
	}
189
	public float getTotalPrice() {
190
		return totalPrice;
191
	}
192
	public void setTotalPrice(float totalPrice) {
193
		this.totalPrice = totalPrice;
194
	}
195
	public float getTransferPrice() {
196
		return transferPrice;
197
	}
198
	public void setTransferPrice(float transferPrice) {
199
		this.transferPrice = transferPrice;
200
	}
201
	public float getTotalWeight() {
202
		return totalWeight;
203
	}
204
	public void setTotalWeight(float totalWeight) {
205
		this.totalWeight = totalWeight;
206
	}
207
	public int getOrderId(){
208
		return orderId;
209
	}
210
	public void setOrderId(int orderId) {
211
		this.orderId = orderId;
212
	}
213
	public String getImeiNumber() {
214
		return imeiNumber;
215
	}
216
	public void setImeiNumber(String imeiNumber) {
217
		this.imeiNumber = imeiNumber;
218
	}
219
	public String getItemNumber() {
220
		return itemNumber;
221
	}
222
	public void setItemNumber(String itemNumber) {
223
		this.itemNumber = itemNumber;
224
	}
225
	public String getDealText() {
226
		return dealText;
227
	}
228
	public void setDealText(String dealText) {
229
		this.dealText = dealText;
230
	}
231
	public LocalDateTime getWarrantyExpiryTimestamp() {
232
		return warrantyExpiryTimestamp;
233
	}
234
	public void setWarrantyExpiryTimestamp(LocalDateTime warrantyExpiryTimestamp) {
235
		this.warrantyExpiryTimestamp = warrantyExpiryTimestamp;
236
	}
237
	public String getSerialNumber() {
238
		return serialNumber;
239
	}
240
	public void setSerialNumber(String serialNumber) {
241
		this.serialNumber = serialNumber;
242
	}
243
	public float getVatRate() {
244
		return vatRate;
245
	}
246
	public void setVatRate(float vatRate) {
247
		this.vatRate = vatRate;
248
	}
249
	public float getNlc() {
250
		return nlc;
251
	}
252
	public void setNlc(float nlc) {
253
		this.nlc = nlc;
254
	}
255
	public float getLogisticsCost() {
256
		return logisticsCost;
257
	}
258
	public void setLogisticsCost(float logisticsCost) {
259
		this.logisticsCost = logisticsCost;
260
	}
261
	public float getCodCollectionCharges() {
262
		return codCollectionCharges;
263
	}
264
	public void setCodCollectionCharges(float codCollectionCharges) {
265
		this.codCollectionCharges = codCollectionCharges;
266
	}
267
	public float getReturnQty() {
268
		return returnQty;
269
	}
270
	public void setReturnQty(float returnQty) {
271
		this.returnQty = returnQty;
272
	}
273
	public LocalDateTime getDamagedExpiryTimestamp() {
274
		return damagedExpiryTimestamp;
275
	}
276
	public void setDamagedExpiryTimestamp(LocalDateTime damagedExpiryTimestamp) {
277
		this.damagedExpiryTimestamp = damagedExpiryTimestamp;
278
	}
279
	@Override
280
	public String toString() {
281
		return "LineItem [id=" + id + ", itemId=" + itemId + ", productGoup=" + productGoup + ", brand=" + brand
282
				+ ", modelNumber=" + modelNumber + ", modelName=" + modelName + ", color=" + color + ", extraInfo="
283
				+ extraInfo + ", quantity=" + quantity + ", mrp=" + mrp + ", unitPrice=" + unitPrice + ", unitWeight="
284
				+ unitWeight + ", totalPrice=" + totalPrice + ", transferPrice=" + transferPrice + ", totalWeight="
285
				+ totalWeight + ", imeiNumber=" + imeiNumber + ", itemNumber=" + itemNumber
286
				+ ", dealText=" + dealText + ", warrantyExpiryTimestamp=" + warrantyExpiryTimestamp + ", serialNumber="
287
				+ serialNumber + ", vatRate=" + vatRate + ", nlc=" + nlc + ", logisticsCost=" + logisticsCost
288
				+ ", codCollectionCharges=" + codCollectionCharges + ", returnQty=" + returnQty
289
				+ ", damagedExpiryTimestamp=" + damagedExpiryTimestamp + "]";
290
	}
291
 
292
}