Subversion Repositories SmartDukaan

Rev

Rev 30201 | 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
 
30659 amit.gupta 17
	@JsonProperty("Availability")
18
	private int availability;
19
	@JsonProperty("Reserved")
20
	private int reserved;
21
	@JsonProperty("Netavailability")
22
	private int Netavailability;
23
 
24
	private int popendingQty;
25
 
26
	private String warehouseName;
27
 
30201 tejbeer 28
	public SaholicCIS() {
29
		super();
30
		// TODO Auto-generated constructor stub
31
	}
32
 
30197 tejbeer 33
	public SaholicCIS(int itemId, int warehouseId, int warehouseFrom, int category, int availability, int reserved,
30659 amit.gupta 34
					  int netavailability) {
30197 tejbeer 35
		super();
36
		this.itemId = itemId;
37
		this.warehouseId = warehouseId;
38
		this.warehouseFrom = warehouseFrom;
39
		this.category = category;
40
		this.availability = availability;
41
		this.reserved = reserved;
42
		Netavailability = netavailability;
43
 
44
	}
45
 
27211 tejbeer 46
	public int getCategory() {
47
		return category;
48
	}
49
 
50
	public void setCategory(int category) {
51
		this.category = category;
52
	}
53
 
27053 amit.gupta 54
	public int getWarehouseFrom() {
55
		return warehouseFrom;
56
	}
57
 
58
	public void setWarehouseFrom(int warehouseFrom) {
59
		this.warehouseFrom = warehouseFrom;
60
	}
61
 
62
	public int getPopendingQty() {
63
		return popendingQty;
64
	}
65
 
66
	public void setPopendingQty(int popendingQty) {
67
		this.popendingQty = popendingQty;
68
	}
69
 
27059 amit.gupta 70
	public String getWarehouseName() {
71
		return warehouseName;
72
	}
27030 amit.gupta 73
 
27059 amit.gupta 74
	public void setWarehouseName(String warehouseName) {
75
		this.warehouseName = warehouseName;
76
	}
77
 
27030 amit.gupta 78
	@Override
79
	public String toString() {
27053 amit.gupta 80
		return "SaholicCIS [itemId=" + itemId + ", warehouseId=" + warehouseId + ", warehouseFrom=" + warehouseFrom
27211 tejbeer 81
				+ ", category=" + category + ", availability=" + availability + ", reserved=" + reserved
82
				+ ", Netavailability=" + Netavailability + ", popendingQty=" + popendingQty + ", warehouseName="
83
				+ warehouseName + "]";
27030 amit.gupta 84
	}
85
 
86
	public int getItemId() {
87
		return itemId;
88
	}
89
 
90
	public void setItemId(int itemId) {
91
		this.itemId = itemId;
92
	}
93
 
94
	public int getWarehouseId() {
95
		return warehouseId;
96
	}
97
 
98
	public void setWarehouseId(int warehouseId) {
99
		this.warehouseId = warehouseId;
100
	}
101
 
102
	public int getNetavailability() {
103
		return Netavailability;
104
	}
105
 
106
	public void setNetavailability(int netavailability) {
107
		Netavailability = netavailability;
108
	}
109
 
110
	public int getAvailability() {
111
		return availability;
112
	}
113
 
114
	public void setAvailability(int availability) {
115
		this.availability = availability;
116
	}
117
 
118
	public int getReserved() {
119
		return reserved;
120
	}
121
 
122
	public void setReserved(int reserved) {
123
		this.reserved = reserved;
124
	}
125
 
126
	@Override
127
	public int hashCode() {
128
		final int prime = 31;
129
		int result = 1;
130
		result = prime * result + Netavailability;
131
		result = prime * result + availability;
27211 tejbeer 132
		result = prime * result + category;
27030 amit.gupta 133
		result = prime * result + itemId;
27059 amit.gupta 134
		result = prime * result + popendingQty;
27030 amit.gupta 135
		result = prime * result + reserved;
27059 amit.gupta 136
		result = prime * result + warehouseFrom;
27030 amit.gupta 137
		result = prime * result + warehouseId;
27059 amit.gupta 138
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
27030 amit.gupta 139
		return result;
140
	}
141
 
142
	@Override
143
	public boolean equals(Object obj) {
144
		if (this == obj)
145
			return true;
146
		if (obj == null)
147
			return false;
148
		if (getClass() != obj.getClass())
149
			return false;
150
		SaholicCIS other = (SaholicCIS) obj;
151
		if (Netavailability != other.Netavailability)
152
			return false;
153
		if (availability != other.availability)
154
			return false;
27211 tejbeer 155
		if (category != other.category)
156
			return false;
27030 amit.gupta 157
		if (itemId != other.itemId)
158
			return false;
27059 amit.gupta 159
		if (popendingQty != other.popendingQty)
160
			return false;
27030 amit.gupta 161
		if (reserved != other.reserved)
162
			return false;
27059 amit.gupta 163
		if (warehouseFrom != other.warehouseFrom)
164
			return false;
27030 amit.gupta 165
		if (warehouseId != other.warehouseId)
166
			return false;
27059 amit.gupta 167
		if (warehouseName == null) {
168
			if (other.warehouseName != null)
169
				return false;
170
		} else if (!warehouseName.equals(other.warehouseName))
171
			return false;
27030 amit.gupta 172
		return true;
173
	}
174
 
175
}