Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30003 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class FofoReportingModel {
4
 
5
	private String code;
6
	private int fofoId;
7
	private String businessName;
8
	private String territoryManager;
9
	private String regionalManager;
10
 
11
	@Override
12
	public String toString() {
13
		return "FofoReportingModel [code=" + code + ", fofoId=" + fofoId + ", businessName=" + businessName
14
				+ ", territoryManager=" + territoryManager + ", regionalManager=" + regionalManager + "]";
15
	}
16
 
17
	public String getCode() {
18
		return code;
19
	}
20
 
21
	public void setCode(String code) {
22
		this.code = code;
23
	}
24
 
25
	public String getBusinessName() {
26
		return businessName;
27
	}
28
 
29
	public void setBusinessName(String businessName) {
30
		this.businessName = businessName;
31
	}
32
 
33
	public String getTerritoryManager() {
34
		return territoryManager;
35
	}
36
 
37
	public void setTerritoryManager(String territoryManager) {
38
		this.territoryManager = territoryManager;
39
	}
40
 
41
	public String getRegionalManager() {
42
		return regionalManager;
43
	}
44
 
45
	public void setRegionalManager(String regionalManager) {
46
		this.regionalManager = regionalManager;
47
	}
48
 
49
	@Override
50
	public int hashCode() {
51
		final int prime = 31;
52
		int result = 1;
53
		result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
54
		result = prime * result + ((code == null) ? 0 : code.hashCode());
55
		result = prime * result + fofoId;
56
		result = prime * result + ((regionalManager == null) ? 0 : regionalManager.hashCode());
57
		result = prime * result + ((territoryManager == null) ? 0 : territoryManager.hashCode());
58
		return result;
59
	}
60
 
61
	@Override
62
	public boolean equals(Object obj) {
63
		if (this == obj)
64
			return true;
65
		if (obj == null)
66
			return false;
67
		if (getClass() != obj.getClass())
68
			return false;
69
		FofoReportingModel other = (FofoReportingModel) obj;
70
		if (businessName == null) {
71
			if (other.businessName != null)
72
				return false;
73
		} else if (!businessName.equals(other.businessName))
74
			return false;
75
		if (code == null) {
76
			if (other.code != null)
77
				return false;
78
		} else if (!code.equals(other.code))
79
			return false;
80
		if (fofoId != other.fofoId)
81
			return false;
82
		if (regionalManager == null) {
83
			if (other.regionalManager != null)
84
				return false;
85
		} else if (!regionalManager.equals(other.regionalManager))
86
			return false;
87
		if (territoryManager == null) {
88
			if (other.territoryManager != null)
89
				return false;
90
		} else if (!territoryManager.equals(other.territoryManager))
91
			return false;
92
		return true;
93
	}
94
 
95
	public int getFofoId() {
96
		return fofoId;
97
	}
98
 
99
	public void setFofoId(int fofoId) {
100
		this.fofoId = fofoId;
101
	}
102
 
103
}