Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
6
	private long total;
7
 
8
	public long getTotal() {
9
		return total;
10
	}
11
 
12
	public void setTotal(long total) {
13
		this.total = total;
14
	}
15
 
16
	public BrandRegionModel(int warehouseId, String brand) {
17
		super();
18
		this.warehouseId = warehouseId;
19
		this.brand = brand;
20
	}
21
 
22
	@Override
23
	public int hashCode() {
24
		final int prime = 31;
25
		int result = 1;
26
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
27
		result = prime * result + warehouseId;
28
		return result;
29
	}
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
		BrandRegionModel other = (BrandRegionModel) obj;
40
		if (brand == null) {
41
			if (other.brand != null)
42
				return false;
43
		} else if (!brand.equals(other.brand))
44
			return false;
45
		if (warehouseId != other.warehouseId)
46
			return false;
47
		return true;
48
	}
49
 
50
	public int getWarehouseId() {
51
		return warehouseId;
52
	}
53
 
54
	public void setWarehouseId(int warehouseId) {
55
		this.warehouseId = warehouseId;
56
	}
57
 
58
	public String getBrand() {
59
		return brand;
60
	}
61
 
62
	public void setBrand(String brand) {
63
		this.brand = brand;
64
	}
65
 
66
	@Override
67
	public String toString() {
68
		return "BrandRegionModel [warehouseId=" + warehouseId + ", brand=" + brand + ", total=" + total + "]";
69
	}
70
 
71
}