Subversion Repositories SmartDukaan

Rev

Rev 27505 | Rev 27529 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27505 Rev 27508
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import java.util.Objects;
-
 
4
 
3
public class WarehouseWiseStockModel {
5
public class WarehouseWiseStockModel {
4
	private int warehouseId;
6
	private int warehouseId;
5
	private String warehouseName;
7
	private String warehouseName;
6
	private int stockQty;
8
	private long stockQty;
7
	private double stockValue;
9
	private long stockValue;
8
	
10
	
9
	public WarehouseWiseStockModel(int warehouseId, int stockQty, double stockValue) {
11
	public WarehouseWiseStockModel(int warehouseId, long stockQty, long stockValue) {
10
		super();
12
		super();
11
		this.warehouseId = warehouseId;
13
		this.warehouseId = warehouseId;
12
		this.stockQty = stockQty;
14
		this.stockQty = stockQty;
13
		this.stockValue = stockValue;
15
		this.stockValue = stockValue;
14
	}
16
	}
Line 33... Line 35...
33
 
35
 
34
	public void setWarehouseName(String warehouseName) {
36
	public void setWarehouseName(String warehouseName) {
35
		this.warehouseName = warehouseName;
37
		this.warehouseName = warehouseName;
36
	}
38
	}
37
 
39
 
38
	public int getStockQty() {
40
	public long getStockQty() {
39
		return stockQty;
41
		return stockQty;
40
	}
42
	}
41
 
43
 
42
	public void setStockQty(int stockQty) {
44
	public void setStockQty(long stockQty) {
43
		this.stockQty = stockQty;
45
		this.stockQty = stockQty;
44
	}
46
	}
45
 
47
 
46
	public double getStockValue() {
48
	public long getStockValue() {
47
		return stockValue;
49
		return stockValue;
48
	}
50
	}
49
 
51
 
50
	public void setStockValue(double stockValue) {
52
	public void setStockValue(long stockValue) {
51
		this.stockValue = stockValue;
53
		this.stockValue = stockValue;
52
	}
54
	}
53
 
55
 
54
	@Override
56
	@Override
55
	public int hashCode() {
57
	public int hashCode() {
56
		final int prime = 31;
-
 
57
		int result = 1;
-
 
58
		result = prime * result + stockQty;
-
 
59
		long temp;
-
 
60
		temp = Double.doubleToLongBits(stockValue);
-
 
61
		result = prime * result + (int) (temp ^ (temp >>> 32));
-
 
62
		result = prime * result + warehouseId;
-
 
63
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
58
		return Objects.hash(warehouseId, warehouseName, stockQty, stockValue);
64
		return result;
-
 
65
	}
59
	}
66
 
60
 
67
	@Override
61
	@Override
68
	public boolean equals(Object obj) {
62
	public boolean equals(Object obj) {
69
		if (this == obj)
63
		if (this == obj)