Subversion Repositories SmartDukaan

Rev

Rev 27749 | Rev 32192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27749 Rev 30826
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.warehouse;
1
package com.spice.profitmandi.dao.entity.warehouse;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
 
-
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Convert;
-
 
7
import javax.persistence.Entity;
-
 
8
import javax.persistence.EnumType;
-
 
9
import javax.persistence.Enumerated;
-
 
10
import javax.persistence.GeneratedValue;
-
 
11
import javax.persistence.GenerationType;
-
 
12
import javax.persistence.Id;
-
 
13
import javax.persistence.NamedQueries;
-
 
14
import javax.persistence.NamedQuery;
-
 
15
import javax.persistence.Table;
-
 
16
 
-
 
17
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
3
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
18
 
-
 
19
import in.shop2020.warehouse.ScanType;
4
import in.shop2020.warehouse.ScanType;
20
 
5
 
-
 
6
import javax.persistence.*;
-
 
7
import java.time.LocalDateTime;
-
 
8
 
21
/**
9
/**
22
 * This class basically contains scheme details
10
 * This class basically contains scheme details
23
 * 
-
 
24
 * @author Govind Kumar
-
 
25
 *
11
 *
-
 
12
 * @author Govind Kumar
26
 */
13
 */
27
@Entity
14
@Entity
28
@Table(name = "warehouse.scanNew", schema = "warehouse")
15
@Table(name = "warehouse.scanNew", schema = "warehouse")
29
@NamedQueries({
16
@NamedQueries({
30
		@NamedQuery(name = "warehouse.selectOurPurchase", query = "select new com.spice.profitmandi.dao.model.OurPurchaseModel(li.brand, "
17
		@NamedQuery(name = "warehouse.selectOurPurchase", query = "select new com.spice.profitmandi.dao.model.OurPurchaseModel(li.brand, "
Line 68... Line 55...
68
 
55
 
69
	@Column(name = "orderId")
56
	@Column(name = "orderId")
70
	private Integer orderId; // The order that was fulfilled with thin scan!
57
	private Integer orderId; // The order that was fulfilled with thin scan!
71
 
58
 
72
	@Column(name = "warehouseId")
59
	@Column(name = "warehouseId")
73
	private int warehouseId;
60
	private int supplierWarehouseId;
74
 
61
 
75
	@Column(name = "transferLotId")
62
	@Column(name = "transferLotId")
76
	private Integer transferLotId;
63
	private Integer transferLotId;
77
 
64
 
78
	@Column(name = "type")
65
	@Column(name = "type")
Line 116... Line 103...
116
 
103
 
117
	public void setOrderId(Integer orderId) {
104
	public void setOrderId(Integer orderId) {
118
		this.orderId = orderId;
105
		this.orderId = orderId;
119
	}
106
	}
120
 
107
 
121
	public int getWarehouseId() {
108
	public int getSupplierWarehouseId() {
122
		return warehouseId;
109
		return supplierWarehouseId;
123
	}
110
	}
124
 
111
 
125
	public void setWarehouseId(int warehouseId) {
112
	public void setSupplierWarehouseId(int warehouseId) {
126
		this.warehouseId = warehouseId;
113
		this.supplierWarehouseId = warehouseId;
127
	}
114
	}
128
 
115
 
129
	public Integer getTransferLotId() {
116
	public Integer getTransferLotId() {
130
		return transferLotId;
117
		return transferLotId;
131
	}
118
	}
Line 168... Line 155...
168
		result = prime * result + ((quantity == null) ? 0 : quantity.hashCode());
155
		result = prime * result + ((quantity == null) ? 0 : quantity.hashCode());
169
		result = prime * result + ((remarks == null) ? 0 : remarks.hashCode());
156
		result = prime * result + ((remarks == null) ? 0 : remarks.hashCode());
170
		result = prime * result + ((scannedAt == null) ? 0 : scannedAt.hashCode());
157
		result = prime * result + ((scannedAt == null) ? 0 : scannedAt.hashCode());
171
		result = prime * result + ((transferLotId == null) ? 0 : transferLotId.hashCode());
158
		result = prime * result + ((transferLotId == null) ? 0 : transferLotId.hashCode());
172
		result = prime * result + ((type == null) ? 0 : type.hashCode());
159
		result = prime * result + ((type == null) ? 0 : type.hashCode());
173
		result = prime * result + warehouseId;
160
		result = prime * result + supplierWarehouseId;
174
		return result;
161
		return result;
175
	}
162
	}
176
 
163
 
177
	@Override
164
	@Override
178
	public boolean equals(Object obj) {
165
	public boolean equals(Object obj) {
Line 212... Line 199...
212
				return false;
199
				return false;
213
		} else if (!transferLotId.equals(other.transferLotId))
200
		} else if (!transferLotId.equals(other.transferLotId))
214
			return false;
201
			return false;
215
		if (type != other.type)
202
		if (type != other.type)
216
			return false;
203
			return false;
217
		if (warehouseId != other.warehouseId)
204
		if (supplierWarehouseId != other.supplierWarehouseId)
218
			return false;
205
			return false;
219
		return true;
206
		return true;
220
	}
207
	}
221
 
208
 
222
	@Override
209
	@Override
223
	public String toString() {
210
	public String toString() {
224
		return "WarehouseScan [id=" + id + ", inventoryItemId=" + inventoryItemId + ", quantity=" + quantity
211
		return "WarehouseScan [id=" + id + ", inventoryItemId=" + inventoryItemId + ", quantity=" + quantity
225
				+ ", orderId=" + orderId + ", warehouseId=" + warehouseId + ", transferLotId=" + transferLotId
212
				+ ", orderId=" + orderId + ", warehouseId=" + supplierWarehouseId + ", transferLotId=" + transferLotId
226
				+ ", type=" + type + ", scannedAt=" + scannedAt + ", remarks=" + remarks + "]";
213
				+ ", type=" + type + ", scannedAt=" + scannedAt + ", remarks=" + remarks + "]";
227
	}
214
	}
228
 
215
 
229
}
216
}