Subversion Repositories SmartDukaan

Rev

Rev 27059 | Rev 30197 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27030 amit.gupta 1
package com.spice.profitmandi.dao.entity.inventory;
2
 
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
 
5
public class SaholicCIS {
6
 
7
	@JsonProperty("Itemid")
8
	private int itemId;
9
	@JsonProperty("Warehouseid")
10
	private int warehouseId;
27051 amit.gupta 11
	@JsonProperty("Warehousefrom")
12
	private int warehouseFrom;
27211 tejbeer 13
 
14
	@JsonProperty("Category")
15
	public int category;
16
 
17
	public int getCategory() {
18
		return category;
19
	}
20
 
21
	public void setCategory(int category) {
22
		this.category = category;
23
	}
24
 
27053 amit.gupta 25
	public int getWarehouseFrom() {
26
		return warehouseFrom;
27
	}
28
 
29
	public void setWarehouseFrom(int warehouseFrom) {
30
		this.warehouseFrom = warehouseFrom;
31
	}
32
 
33
	public int getPopendingQty() {
34
		return popendingQty;
35
	}
36
 
37
	public void setPopendingQty(int popendingQty) {
38
		this.popendingQty = popendingQty;
39
	}
40
 
27030 amit.gupta 41
	@JsonProperty("Availability")
42
	private int availability;
43
	@JsonProperty("Reserved")
44
	private int reserved;
45
	@JsonProperty("Netavailability")
46
	private int Netavailability;
27211 tejbeer 47
 
27053 amit.gupta 48
	private int popendingQty;
27211 tejbeer 49
 
27059 amit.gupta 50
	private String warehouseName;
27211 tejbeer 51
 
27059 amit.gupta 52
	public String getWarehouseName() {
53
		return warehouseName;
54
	}
27030 amit.gupta 55
 
27059 amit.gupta 56
	public void setWarehouseName(String warehouseName) {
57
		this.warehouseName = warehouseName;
58
	}
59
 
27030 amit.gupta 60
	@Override
61
	public String toString() {
27053 amit.gupta 62
		return "SaholicCIS [itemId=" + itemId + ", warehouseId=" + warehouseId + ", warehouseFrom=" + warehouseFrom
27211 tejbeer 63
				+ ", category=" + category + ", availability=" + availability + ", reserved=" + reserved
64
				+ ", Netavailability=" + Netavailability + ", popendingQty=" + popendingQty + ", warehouseName="
65
				+ warehouseName + "]";
27030 amit.gupta 66
	}
67
 
68
	public int getItemId() {
69
		return itemId;
70
	}
71
 
72
	public void setItemId(int itemId) {
73
		this.itemId = itemId;
74
	}
75
 
76
	public int getWarehouseId() {
77
		return warehouseId;
78
	}
79
 
80
	public void setWarehouseId(int warehouseId) {
81
		this.warehouseId = warehouseId;
82
	}
83
 
84
	public int getNetavailability() {
85
		return Netavailability;
86
	}
87
 
88
	public void setNetavailability(int netavailability) {
89
		Netavailability = netavailability;
90
	}
91
 
92
	public int getAvailability() {
93
		return availability;
94
	}
95
 
96
	public void setAvailability(int availability) {
97
		this.availability = availability;
98
	}
99
 
100
	public int getReserved() {
101
		return reserved;
102
	}
103
 
104
	public void setReserved(int reserved) {
105
		this.reserved = reserved;
106
	}
107
 
108
	@Override
109
	public int hashCode() {
110
		final int prime = 31;
111
		int result = 1;
112
		result = prime * result + Netavailability;
113
		result = prime * result + availability;
27211 tejbeer 114
		result = prime * result + category;
27030 amit.gupta 115
		result = prime * result + itemId;
27059 amit.gupta 116
		result = prime * result + popendingQty;
27030 amit.gupta 117
		result = prime * result + reserved;
27059 amit.gupta 118
		result = prime * result + warehouseFrom;
27030 amit.gupta 119
		result = prime * result + warehouseId;
27059 amit.gupta 120
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
27030 amit.gupta 121
		return result;
122
	}
123
 
124
	@Override
125
	public boolean equals(Object obj) {
126
		if (this == obj)
127
			return true;
128
		if (obj == null)
129
			return false;
130
		if (getClass() != obj.getClass())
131
			return false;
132
		SaholicCIS other = (SaholicCIS) obj;
133
		if (Netavailability != other.Netavailability)
134
			return false;
135
		if (availability != other.availability)
136
			return false;
27211 tejbeer 137
		if (category != other.category)
138
			return false;
27030 amit.gupta 139
		if (itemId != other.itemId)
140
			return false;
27059 amit.gupta 141
		if (popendingQty != other.popendingQty)
142
			return false;
27030 amit.gupta 143
		if (reserved != other.reserved)
144
			return false;
27059 amit.gupta 145
		if (warehouseFrom != other.warehouseFrom)
146
			return false;
27030 amit.gupta 147
		if (warehouseId != other.warehouseId)
148
			return false;
27059 amit.gupta 149
		if (warehouseName == null) {
150
			if (other.warehouseName != null)
151
				return false;
152
		} else if (!warehouseName.equals(other.warehouseName))
153
			return false;
27030 amit.gupta 154
		return true;
155
	}
156
 
157
}