| 7613 |
amar.kumar |
1 |
package in.shop2020.warehouse.domain;
|
|
|
2 |
|
|
|
3 |
import java.util.Date;
|
|
|
4 |
|
|
|
5 |
public class InTransitInventory {
|
|
|
6 |
|
|
|
7 |
private long itemId;
|
|
|
8 |
private long originWarehouseId;
|
|
|
9 |
private long destinationWarehouseId;
|
|
|
10 |
private long quantity;
|
|
|
11 |
private Date dateOfTransfer;
|
|
|
12 |
|
|
|
13 |
public long getItemId() {
|
|
|
14 |
return itemId;
|
|
|
15 |
}
|
|
|
16 |
public void setItemId(long itemId) {
|
|
|
17 |
this.itemId = itemId;
|
|
|
18 |
}
|
|
|
19 |
public long getOriginWarehouseId() {
|
|
|
20 |
return originWarehouseId;
|
|
|
21 |
}
|
|
|
22 |
public void setOriginWarehouseId(long originWarehouseId) {
|
|
|
23 |
this.originWarehouseId = originWarehouseId;
|
|
|
24 |
}
|
|
|
25 |
public long getDestinationWarehouseId() {
|
|
|
26 |
return destinationWarehouseId;
|
|
|
27 |
}
|
|
|
28 |
public void setDestinationWarehouseId(long destinationWarehouseId) {
|
|
|
29 |
this.destinationWarehouseId = destinationWarehouseId;
|
|
|
30 |
}
|
|
|
31 |
public long getQuantity() {
|
|
|
32 |
return quantity;
|
|
|
33 |
}
|
|
|
34 |
public void setQuantity(long quantity) {
|
|
|
35 |
this.quantity = quantity;
|
|
|
36 |
}
|
|
|
37 |
public Date getDateOfTransfer() {
|
|
|
38 |
return dateOfTransfer;
|
|
|
39 |
}
|
|
|
40 |
public void setDateOfTransfer(Date dateOfTransfer) {
|
|
|
41 |
this.dateOfTransfer = dateOfTransfer;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
public in.shop2020.warehouse.InTransitInventory toThriftObject() {
|
|
|
45 |
in.shop2020.warehouse.InTransitInventory t_InTransitInventory = new in.shop2020.warehouse.InTransitInventory();
|
|
|
46 |
t_InTransitInventory.setItemId(this.itemId);
|
|
|
47 |
t_InTransitInventory.setOriginWarehouseId(this.originWarehouseId);
|
|
|
48 |
t_InTransitInventory.setDestinationWarehouseId(this.destinationWarehouseId);
|
|
|
49 |
t_InTransitInventory.setQuantity(this.quantity);
|
|
|
50 |
t_InTransitInventory.setTransferDate(this.dateOfTransfer.getTime());
|
|
|
51 |
return t_InTransitInventory;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
}
|