Subversion Repositories SmartDukaan

Rev

Rev 27539 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27505 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class WarehouseWiseStockModel {
4
	private int warehouseId;
27508 amit.gupta 5
	private long stockQty;
6
	private long stockValue;
27529 tejbeer 7
	private long pendingIndent;
27541 tejbeer 8
	private long tertiary;
27529 tejbeer 9
 
27541 tejbeer 10
	public WarehouseWiseStockModel(int warehouseId, long stockQty, long stockValue, long pendingIndent, long tertiary) {
27505 tejbeer 11
		super();
12
		this.warehouseId = warehouseId;
13
		this.stockQty = stockQty;
14
		this.stockValue = stockValue;
27529 tejbeer 15
		this.pendingIndent = pendingIndent;
27541 tejbeer 16
		this.tertiary = tertiary;
27505 tejbeer 17
	}
27539 tejbeer 18
 
19
	public WarehouseWiseStockModel() {
20
		super();
21
		// TODO Auto-generated constructor stub
22
	}
23
 
27541 tejbeer 24
	public int getWarehouseId() {
25
		return warehouseId;
26
	}
27
 
28
	public void setWarehouseId(int warehouseId) {
29
		this.warehouseId = warehouseId;
30
	}
31
 
32
	public long getStockQty() {
33
		return stockQty;
34
	}
35
 
36
	public void setStockQty(long stockQty) {
37
		this.stockQty = stockQty;
38
	}
39
 
40
	public long getStockValue() {
41
		return stockValue;
42
	}
43
 
44
	public void setStockValue(long stockValue) {
45
		this.stockValue = stockValue;
46
	}
47
 
48
	public long getPendingIndent() {
49
		return pendingIndent;
50
	}
51
 
52
	public void setPendingIndent(long pendingIndent) {
53
		this.pendingIndent = pendingIndent;
54
	}
55
 
56
	public long getTertiary() {
57
		return tertiary;
58
	}
59
 
60
	public void setTertiary(long tertiary) {
61
		this.tertiary = tertiary;
62
	}
63
 
27505 tejbeer 64
	@Override
65
	public String toString() {
27529 tejbeer 66
		return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", stockQty=" + stockQty + ", stockValue="
27541 tejbeer 67
				+ stockValue + ", pendingIndent=" + pendingIndent + ", tertiary=" + tertiary + "]";
27505 tejbeer 68
	}
27539 tejbeer 69
 
27529 tejbeer 70
	@Override
71
	public int hashCode() {
72
		final int prime = 31;
73
		int result = 1;
74
		result = prime * result + (int) (pendingIndent ^ (pendingIndent >>> 32));
75
		result = prime * result + (int) (stockQty ^ (stockQty >>> 32));
76
		result = prime * result + (int) (stockValue ^ (stockValue >>> 32));
27541 tejbeer 77
		result = prime * result + (int) (tertiary ^ (tertiary >>> 32));
27529 tejbeer 78
		result = prime * result + warehouseId;
79
		return result;
80
	}
27539 tejbeer 81
 
27529 tejbeer 82
	@Override
83
	public boolean equals(Object obj) {
84
		if (this == obj)
85
			return true;
86
		if (obj == null)
87
			return false;
88
		if (getClass() != obj.getClass())
89
			return false;
90
		WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;
91
		if (pendingIndent != other.pendingIndent)
92
			return false;
93
		if (stockQty != other.stockQty)
94
			return false;
95
		if (stockValue != other.stockValue)
96
			return false;
27541 tejbeer 97
		if (tertiary != other.tertiary)
98
			return false;
27529 tejbeer 99
		if (warehouseId != other.warehouseId)
100
			return false;
101
		return true;
102
	}
27539 tejbeer 103
 
27505 tejbeer 104
}