| 28493 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.inventory;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.Column;
|
|
|
6 |
import javax.persistence.Entity;
|
|
|
7 |
import javax.persistence.EnumType;
|
|
|
8 |
import javax.persistence.Enumerated;
|
|
|
9 |
import javax.persistence.GeneratedValue;
|
|
|
10 |
import javax.persistence.GenerationType;
|
|
|
11 |
import javax.persistence.Id;
|
|
|
12 |
import javax.persistence.Table;
|
|
|
13 |
|
|
|
14 |
import com.spice.profitmandi.dao.enumuration.inventory.InventoryType;
|
|
|
15 |
import com.spice.profitmandi.dao.enumuration.inventory.WarehouseType;
|
|
|
16 |
|
|
|
17 |
@Entity
|
|
|
18 |
@Table(name = "inventory.warehouse", schema = "inventory")
|
|
|
19 |
public class Warehouse {
|
|
|
20 |
|
|
|
21 |
@Id
|
|
|
22 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
23 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
24 |
private int id;
|
|
|
25 |
private String displayName;
|
|
|
26 |
private String location;
|
|
|
27 |
private int status;
|
|
|
28 |
private LocalDateTime addedOn;
|
|
|
29 |
private LocalDateTime lastCheckedOn;
|
|
|
30 |
private String tinNumber;
|
|
|
31 |
private String pincode;
|
|
|
32 |
private String vendorString;
|
|
|
33 |
private String gstin;
|
|
|
34 |
|
|
|
35 |
private int logisticsLocation;
|
| 28664 |
amit.gupta |
36 |
private Integer billingType;
|
| 28493 |
tejbeer |
37 |
@Enumerated(EnumType.STRING)
|
|
|
38 |
private WarehouseType warehouseType;
|
|
|
39 |
|
|
|
40 |
@Enumerated(EnumType.STRING)
|
|
|
41 |
private InventoryType inventoryType;
|
|
|
42 |
@Column(name = "vendor_id")
|
|
|
43 |
private int vendor;
|
|
|
44 |
|
|
|
45 |
private int shippingWarehouseId;
|
|
|
46 |
private int billingWarehouseId;
|
|
|
47 |
private int isAvailabilityMonitored;
|
|
|
48 |
private long transferDelayInHours;
|
|
|
49 |
@Column(name = "state_id")
|
|
|
50 |
private int stateId;
|
| 28665 |
amit.gupta |
51 |
private Integer source;
|
| 28493 |
tejbeer |
52 |
|
|
|
53 |
public int getId() {
|
|
|
54 |
return id;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setId(int id) {
|
|
|
58 |
this.id = id;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public String getDisplayName() {
|
|
|
62 |
return displayName;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setDisplayName(String displayName) {
|
|
|
66 |
this.displayName = displayName;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public String getLocation() {
|
|
|
70 |
return location;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setLocation(String location) {
|
|
|
74 |
this.location = location;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public int getStatus() {
|
|
|
78 |
return status;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public void setStatus(int status) {
|
|
|
82 |
this.status = status;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public LocalDateTime getAddedOn() {
|
|
|
86 |
return addedOn;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public void setAddedOn(LocalDateTime addedOn) {
|
|
|
90 |
this.addedOn = addedOn;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public LocalDateTime getLastCheckedOn() {
|
|
|
94 |
return lastCheckedOn;
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
public void setLastCheckedOn(LocalDateTime lastCheckedOn) {
|
|
|
98 |
this.lastCheckedOn = lastCheckedOn;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
public String getTinNumber() {
|
|
|
102 |
return tinNumber;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
public void setTinNumber(String tinNumber) {
|
|
|
106 |
this.tinNumber = tinNumber;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
public String getPincode() {
|
|
|
110 |
return pincode;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
public void setPincode(String pincode) {
|
|
|
114 |
this.pincode = pincode;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
public String getVendorString() {
|
|
|
118 |
return vendorString;
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
public void setVendorString(String vendorString) {
|
|
|
122 |
this.vendorString = vendorString;
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
public String getGstin() {
|
|
|
126 |
return gstin;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
public void setGstin(String gstin) {
|
|
|
130 |
this.gstin = gstin;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
public int getLogisticsLocation() {
|
|
|
134 |
return logisticsLocation;
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
public void setLogisticsLocation(int logisticsLocation) {
|
|
|
138 |
this.logisticsLocation = logisticsLocation;
|
|
|
139 |
}
|
|
|
140 |
|
| 28664 |
amit.gupta |
141 |
public Integer getBillingType() {
|
| 28493 |
tejbeer |
142 |
return billingType;
|
|
|
143 |
}
|
|
|
144 |
|
| 28664 |
amit.gupta |
145 |
public void setBillingType(Integer billingType) {
|
| 28493 |
tejbeer |
146 |
this.billingType = billingType;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public WarehouseType getWarehouseType() {
|
|
|
150 |
return warehouseType;
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
public void setWarehouseType(WarehouseType warehouseType) {
|
|
|
154 |
this.warehouseType = warehouseType;
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
public InventoryType getInventoryType() {
|
|
|
158 |
return inventoryType;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
public void setInventoryType(InventoryType inventoryType) {
|
|
|
162 |
this.inventoryType = inventoryType;
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
public int getVendor() {
|
|
|
166 |
return vendor;
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
public void setVendor(int vendor) {
|
|
|
170 |
this.vendor = vendor;
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
public int getShippingWarehouseId() {
|
|
|
174 |
return shippingWarehouseId;
|
|
|
175 |
}
|
|
|
176 |
|
|
|
177 |
public void setShippingWarehouseId(int shippingWarehouseId) {
|
|
|
178 |
this.shippingWarehouseId = shippingWarehouseId;
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
public int getBillingWarehouseId() {
|
|
|
182 |
return billingWarehouseId;
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
public void setBillingWarehouseId(int billingWarehouseId) {
|
|
|
186 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
public int getIsAvailabilityMonitored() {
|
|
|
190 |
return isAvailabilityMonitored;
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
public void setIsAvailabilityMonitored(int isAvailabilityMonitored) {
|
|
|
194 |
this.isAvailabilityMonitored = isAvailabilityMonitored;
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
public long getTransferDelayInHours() {
|
|
|
198 |
return transferDelayInHours;
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
public void setTransferDelayInHours(long transferDelayInHours) {
|
|
|
202 |
this.transferDelayInHours = transferDelayInHours;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
public int getStateId() {
|
|
|
206 |
return stateId;
|
|
|
207 |
}
|
|
|
208 |
|
| 28665 |
amit.gupta |
209 |
public void setStateId(Integer stateId) {
|
| 28493 |
tejbeer |
210 |
this.stateId = stateId;
|
|
|
211 |
}
|
|
|
212 |
|
| 28665 |
amit.gupta |
213 |
public Integer getSource() {
|
| 28493 |
tejbeer |
214 |
return source;
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
public void setSource(int source) {
|
|
|
218 |
this.source = source;
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
@Override
|
|
|
222 |
public String toString() {
|
|
|
223 |
return "Warehouse [id=" + id + ", displayName=" + displayName + ", location=" + location + ", status=" + status
|
|
|
224 |
+ ", addedOn=" + addedOn + ", lastCheckedOn=" + lastCheckedOn + ", tinNumber=" + tinNumber
|
|
|
225 |
+ ", pincode=" + pincode + ", vendorString=" + vendorString + ", gstin=" + gstin
|
|
|
226 |
+ ", logisticsLocation=" + logisticsLocation + ", billingType=" + billingType + ", warehouseType="
|
|
|
227 |
+ warehouseType + ", inventoryType=" + inventoryType + ", vendor=" + vendor + ", shippingWarehouseId="
|
|
|
228 |
+ shippingWarehouseId + ", billingWarehouseId=" + billingWarehouseId + ", isAvailabilityMonitored="
|
|
|
229 |
+ isAvailabilityMonitored + ", transferDelayInHours=" + transferDelayInHours + ", stateId=" + stateId
|
|
|
230 |
+ ", source=" + source + "]";
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
public Warehouse() {
|
|
|
234 |
super();
|
|
|
235 |
// TODO Auto-generated constructor stub
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
}
|