Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
27867 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class BrandRegionModel {
4
	private int warehouseId;
5
	private String brand;
27893 tejbeer 6
	private int total;
7
	private int qty;
27867 tejbeer 8
 
27893 tejbeer 9
	public int getQty() {
10
		return qty;
11
	}
12
 
13
	public void setQty(int qty) {
14
		this.qty = qty;
15
	}
16
 
17
	public int getTotal() {
27867 tejbeer 18
		return total;
19
	}
20
 
27893 tejbeer 21
	public void setTotal(int total) {
27867 tejbeer 22
		this.total = total;
23
	}
24
 
25
	public BrandRegionModel(int warehouseId, String brand) {
26
		super();
27
		this.warehouseId = warehouseId;
28
		this.brand = brand;
29
	}
30
 
31
	@Override
32
	public int hashCode() {
33
		final int prime = 31;
34
		int result = 1;
35
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
36
		result = prime * result + warehouseId;
37
		return result;
38
	}
39
 
40
	@Override
41
	public boolean equals(Object obj) {
42
		if (this == obj)
43
			return true;
44
		if (obj == null)
45
			return false;
46
		if (getClass() != obj.getClass())
47
			return false;
48
		BrandRegionModel other = (BrandRegionModel) obj;
49
		if (brand == null) {
50
			if (other.brand != null)
51
				return false;
52
		} else if (!brand.equals(other.brand))
53
			return false;
54
		if (warehouseId != other.warehouseId)
55
			return false;
56
		return true;
57
	}
58
 
59
	public int getWarehouseId() {
60
		return warehouseId;
61
	}
62
 
63
	public void setWarehouseId(int warehouseId) {
64
		this.warehouseId = warehouseId;
65
	}
66
 
67
	public String getBrand() {
68
		return brand;
69
	}
70
 
71
	public void setBrand(String brand) {
72
		this.brand = brand;
73
	}
74
 
75
	@Override
76
	public String toString() {
27893 tejbeer 77
		return "BrandRegionModel [warehouseId=" + warehouseId + ", brand=" + brand + ", total=" + total + ", qty=" + qty
78
				+ "]";
27867 tejbeer 79
	}
80
 
81
}