Subversion Repositories SmartDukaan

Rev

Rev 27508 | Rev 27539 | 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
	}
16
	@Override
17
	public String toString() {
27529 tejbeer 18
		return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", stockQty=" + stockQty + ", stockValue="
19
				+ stockValue + ", pendingIndent=" + pendingIndent + "]";
27505 tejbeer 20
	}
27529 tejbeer 21
	@Override
22
	public int hashCode() {
23
		final int prime = 31;
24
		int result = 1;
25
		result = prime * result + (int) (pendingIndent ^ (pendingIndent >>> 32));
26
		result = prime * result + (int) (stockQty ^ (stockQty >>> 32));
27
		result = prime * result + (int) (stockValue ^ (stockValue >>> 32));
28
		result = prime * result + warehouseId;
29
		return result;
30
	}
31
	@Override
32
	public boolean equals(Object obj) {
33
		if (this == obj)
34
			return true;
35
		if (obj == null)
36
			return false;
37
		if (getClass() != obj.getClass())
38
			return false;
39
		WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;
40
		if (pendingIndent != other.pendingIndent)
41
			return false;
42
		if (stockQty != other.stockQty)
43
			return false;
44
		if (stockValue != other.stockValue)
45
			return false;
46
		if (warehouseId != other.warehouseId)
47
			return false;
48
		return true;
49
	}
27505 tejbeer 50
	public int getWarehouseId() {
51
		return warehouseId;
52
	}
53
	public void setWarehouseId(int warehouseId) {
54
		this.warehouseId = warehouseId;
55
	}
27508 amit.gupta 56
	public long getStockQty() {
27505 tejbeer 57
		return stockQty;
58
	}
27508 amit.gupta 59
	public void setStockQty(long stockQty) {
27505 tejbeer 60
		this.stockQty = stockQty;
61
	}
27508 amit.gupta 62
	public long getStockValue() {
27505 tejbeer 63
		return stockValue;
64
	}
27508 amit.gupta 65
	public void setStockValue(long stockValue) {
27505 tejbeer 66
		this.stockValue = stockValue;
67
	}
27529 tejbeer 68
	public long getPendingIndent() {
69
		return pendingIndent;
27505 tejbeer 70
	}
27529 tejbeer 71
	public void setPendingIndent(long pendingIndent) {
72
		this.pendingIndent = pendingIndent;
73
	}
27505 tejbeer 74
 
75
 
27529 tejbeer 76
 
27505 tejbeer 77
}