Subversion Repositories SmartDukaan

Rev

Rev 27529 | Go to most recent revision | 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;
8
 
9
	public WarehouseWiseStockModel(int warehouseId, long stockQty, long stockValue, long pendingIndent) {
27505 tejbeer 10
		super();
11
		this.warehouseId = warehouseId;
12
		this.stockQty = stockQty;
13
		this.stockValue = stockValue;
27529 tejbeer 14
		this.pendingIndent = pendingIndent;
27505 tejbeer 15
	}
27539 tejbeer 16
 
17
	public WarehouseWiseStockModel() {
18
		super();
19
		// TODO Auto-generated constructor stub
20
	}
21
 
27505 tejbeer 22
	@Override
23
	public String toString() {
27529 tejbeer 24
		return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", stockQty=" + stockQty + ", stockValue="
25
				+ stockValue + ", pendingIndent=" + pendingIndent + "]";
27505 tejbeer 26
	}
27539 tejbeer 27
 
27529 tejbeer 28
	@Override
29
	public int hashCode() {
30
		final int prime = 31;
31
		int result = 1;
32
		result = prime * result + (int) (pendingIndent ^ (pendingIndent >>> 32));
33
		result = prime * result + (int) (stockQty ^ (stockQty >>> 32));
34
		result = prime * result + (int) (stockValue ^ (stockValue >>> 32));
35
		result = prime * result + warehouseId;
36
		return result;
37
	}
27539 tejbeer 38
 
27529 tejbeer 39
	@Override
40
	public boolean equals(Object obj) {
41
		if (this == obj)
42
			return true;
43
		if (obj == null)
44
			return false;
45
		if (getClass() != obj.getClass())
46
			return false;
47
		WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;
48
		if (pendingIndent != other.pendingIndent)
49
			return false;
50
		if (stockQty != other.stockQty)
51
			return false;
52
		if (stockValue != other.stockValue)
53
			return false;
54
		if (warehouseId != other.warehouseId)
55
			return false;
56
		return true;
57
	}
27539 tejbeer 58
 
27505 tejbeer 59
	public int getWarehouseId() {
60
		return warehouseId;
61
	}
27539 tejbeer 62
 
27505 tejbeer 63
	public void setWarehouseId(int warehouseId) {
64
		this.warehouseId = warehouseId;
65
	}
27539 tejbeer 66
 
27508 amit.gupta 67
	public long getStockQty() {
27505 tejbeer 68
		return stockQty;
69
	}
27539 tejbeer 70
 
27508 amit.gupta 71
	public void setStockQty(long stockQty) {
27505 tejbeer 72
		this.stockQty = stockQty;
73
	}
27539 tejbeer 74
 
27508 amit.gupta 75
	public long getStockValue() {
27505 tejbeer 76
		return stockValue;
77
	}
27539 tejbeer 78
 
27508 amit.gupta 79
	public void setStockValue(long stockValue) {
27505 tejbeer 80
		this.stockValue = stockValue;
81
	}
27539 tejbeer 82
 
27529 tejbeer 83
	public long getPendingIndent() {
84
		return pendingIndent;
27505 tejbeer 85
	}
27539 tejbeer 86
 
27529 tejbeer 87
	public void setPendingIndent(long pendingIndent) {
88
		this.pendingIndent = pendingIndent;
89
	}
27505 tejbeer 90
 
91
}