Subversion Repositories SmartDukaan

Rev

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

Rev 25906 Rev 25927
Line 8... Line 8...
8
import javax.persistence.Enumerated;
8
import javax.persistence.Enumerated;
9
import javax.persistence.GeneratedValue;
9
import javax.persistence.GeneratedValue;
10
import javax.persistence.GenerationType;
10
import javax.persistence.GenerationType;
11
import javax.persistence.Id;
11
import javax.persistence.Id;
12
import javax.persistence.Table;
12
import javax.persistence.Table;
-
 
13
import javax.persistence.Transient;
13
 
14
 
14
import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeVisitStatus;
15
import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeVisitStatus;
15
 
16
 
16
@Entity
17
@Entity
17
@Table(name = "user.my_franchisee_visit", schema = "user")
18
@Table(name = "user.my_franchisee_visit", schema = "user")
Line 29... Line 30...
29
	private String partnerName;
30
	private String partnerName;
30
 
31
 
31
	public String getPartnerName() {
32
	public String getPartnerName() {
32
		return partnerName;
33
		return partnerName;
33
	}
34
	}
-
 
35
	
-
 
36
	@Transient
-
 
37
	private FranchiseeActivity franchiseeActivity;
-
 
38
 
-
 
39
	@Override
-
 
40
	public int hashCode() {
-
 
41
		final int prime = 31;
-
 
42
		int result = 1;
-
 
43
		result = prime * result + ((agenda == null) ? 0 : agenda.hashCode());
-
 
44
		result = prime * result + authId;
-
 
45
		result = prime * result + ((carryBags == null) ? 0 : carryBags.hashCode());
-
 
46
		result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
-
 
47
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
-
 
48
		result = prime * result + fofoId;
-
 
49
		result = prime * result + franchiseActivityId;
-
 
50
		result = prime * result + ((franchiseeActivity == null) ? 0 : franchiseeActivity.hashCode());
-
 
51
		result = prime * result + ((hygiene == null) ? 0 : hygiene.hashCode());
-
 
52
		result = prime * result + id;
-
 
53
		result = prime * result + ((instoreVisibility == null) ? 0 : instoreVisibility.hashCode());
-
 
54
		result = prime * result + ((investment == null) ? 0 : investment.hashCode());
-
 
55
		result = prime * result + ((latestDummies == null) ? 0 : latestDummies.hashCode());
-
 
56
		result = prime * result + mtd;
-
 
57
		result = prime * result + ((outsideStock == null) ? 0 : outsideStock.hashCode());
-
 
58
		result = prime * result + ((outsideVisibity == null) ? 0 : outsideVisibity.hashCode());
-
 
59
		result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
-
 
60
		result = prime * result + ((partnerRemark == null) ? 0 : partnerRemark.hashCode());
-
 
61
		result = prime * result + ((schelduleTimestamp == null) ? 0 : schelduleTimestamp.hashCode());
-
 
62
		result = prime * result + ((smartdukaanTshirt == null) ? 0 : smartdukaanTshirt.hashCode());
-
 
63
		result = prime * result + ((status == null) ? 0 : status.hashCode());
-
 
64
		result = prime * result + ((systemKnowledge == null) ? 0 : systemKnowledge.hashCode());
-
 
65
		result = prime * result + ((updatedTimestamp == null) ? 0 : updatedTimestamp.hashCode());
-
 
66
		result = prime * result + ((workingDevice == null) ? 0 : workingDevice.hashCode());
-
 
67
		result = prime * result + ((workingPrinter == null) ? 0 : workingPrinter.hashCode());
-
 
68
		return result;
-
 
69
	}
-
 
70
 
-
 
71
	@Override
-
 
72
	public boolean equals(Object obj) {
-
 
73
		if (this == obj)
-
 
74
			return true;
-
 
75
		if (obj == null)
-
 
76
			return false;
-
 
77
		if (getClass() != obj.getClass())
-
 
78
			return false;
-
 
79
		FranchiseeVisit other = (FranchiseeVisit) obj;
-
 
80
		if (agenda == null) {
-
 
81
			if (other.agenda != null)
-
 
82
				return false;
-
 
83
		} else if (!agenda.equals(other.agenda))
-
 
84
			return false;
-
 
85
		if (authId != other.authId)
-
 
86
			return false;
-
 
87
		if (carryBags == null) {
-
 
88
			if (other.carryBags != null)
-
 
89
				return false;
-
 
90
		} else if (!carryBags.equals(other.carryBags))
-
 
91
			return false;
-
 
92
		if (createdBy == null) {
-
 
93
			if (other.createdBy != null)
-
 
94
				return false;
-
 
95
		} else if (!createdBy.equals(other.createdBy))
-
 
96
			return false;
-
 
97
		if (createdTimestamp == null) {
-
 
98
			if (other.createdTimestamp != null)
-
 
99
				return false;
-
 
100
		} else if (!createdTimestamp.equals(other.createdTimestamp))
-
 
101
			return false;
-
 
102
		if (fofoId != other.fofoId)
-
 
103
			return false;
-
 
104
		if (franchiseActivityId != other.franchiseActivityId)
-
 
105
			return false;
-
 
106
		if (franchiseeActivity == null) {
-
 
107
			if (other.franchiseeActivity != null)
-
 
108
				return false;
-
 
109
		} else if (!franchiseeActivity.equals(other.franchiseeActivity))
-
 
110
			return false;
-
 
111
		if (hygiene == null) {
-
 
112
			if (other.hygiene != null)
-
 
113
				return false;
-
 
114
		} else if (!hygiene.equals(other.hygiene))
-
 
115
			return false;
-
 
116
		if (id != other.id)
-
 
117
			return false;
-
 
118
		if (instoreVisibility == null) {
-
 
119
			if (other.instoreVisibility != null)
-
 
120
				return false;
-
 
121
		} else if (!instoreVisibility.equals(other.instoreVisibility))
-
 
122
			return false;
-
 
123
		if (investment == null) {
-
 
124
			if (other.investment != null)
-
 
125
				return false;
-
 
126
		} else if (!investment.equals(other.investment))
-
 
127
			return false;
-
 
128
		if (latestDummies == null) {
-
 
129
			if (other.latestDummies != null)
-
 
130
				return false;
-
 
131
		} else if (!latestDummies.equals(other.latestDummies))
-
 
132
			return false;
-
 
133
		if (mtd != other.mtd)
-
 
134
			return false;
-
 
135
		if (outsideStock == null) {
-
 
136
			if (other.outsideStock != null)
-
 
137
				return false;
-
 
138
		} else if (!outsideStock.equals(other.outsideStock))
-
 
139
			return false;
-
 
140
		if (outsideVisibity == null) {
-
 
141
			if (other.outsideVisibity != null)
-
 
142
				return false;
-
 
143
		} else if (!outsideVisibity.equals(other.outsideVisibity))
-
 
144
			return false;
-
 
145
		if (partnerName == null) {
-
 
146
			if (other.partnerName != null)
-
 
147
				return false;
-
 
148
		} else if (!partnerName.equals(other.partnerName))
-
 
149
			return false;
-
 
150
		if (partnerRemark == null) {
-
 
151
			if (other.partnerRemark != null)
-
 
152
				return false;
-
 
153
		} else if (!partnerRemark.equals(other.partnerRemark))
-
 
154
			return false;
-
 
155
		if (schelduleTimestamp == null) {
-
 
156
			if (other.schelduleTimestamp != null)
-
 
157
				return false;
-
 
158
		} else if (!schelduleTimestamp.equals(other.schelduleTimestamp))
-
 
159
			return false;
-
 
160
		if (smartdukaanTshirt == null) {
-
 
161
			if (other.smartdukaanTshirt != null)
-
 
162
				return false;
-
 
163
		} else if (!smartdukaanTshirt.equals(other.smartdukaanTshirt))
-
 
164
			return false;
-
 
165
		if (status != other.status)
-
 
166
			return false;
-
 
167
		if (systemKnowledge == null) {
-
 
168
			if (other.systemKnowledge != null)
-
 
169
				return false;
-
 
170
		} else if (!systemKnowledge.equals(other.systemKnowledge))
-
 
171
			return false;
-
 
172
		if (updatedTimestamp == null) {
-
 
173
			if (other.updatedTimestamp != null)
-
 
174
				return false;
-
 
175
		} else if (!updatedTimestamp.equals(other.updatedTimestamp))
-
 
176
			return false;
-
 
177
		if (workingDevice == null) {
-
 
178
			if (other.workingDevice != null)
-
 
179
				return false;
-
 
180
		} else if (!workingDevice.equals(other.workingDevice))
-
 
181
			return false;
-
 
182
		if (workingPrinter == null) {
-
 
183
			if (other.workingPrinter != null)
-
 
184
				return false;
-
 
185
		} else if (!workingPrinter.equals(other.workingPrinter))
-
 
186
			return false;
-
 
187
		return true;
-
 
188
	}
-
 
189
 
-
 
190
	public FranchiseeActivity getFranchiseeActivity() {
-
 
191
		return franchiseeActivity;
-
 
192
	}
-
 
193
 
-
 
194
	public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
-
 
195
		this.franchiseeActivity = franchiseeActivity;
-
 
196
	}
34
 
197
 
35
	public void setPartnerName(String partnerName) {
198
	public void setPartnerName(String partnerName) {
36
		this.partnerName = partnerName;
199
		this.partnerName = partnerName;
37
	}
200
	}
38
 
201
 
Line 285... Line 448...
285
	}
448
	}
286
 
449
 
287
	@Override
450
	@Override
288
	public String toString() {
451
	public String toString() {
289
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
452
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
290
				+ ", schelduleTimestamp=" + schelduleTimestamp + ", agenda=" + agenda + ", partnerRemark="
453
				+ ", franchiseeActivity=" + franchiseeActivity + ", schelduleTimestamp=" + schelduleTimestamp
291
				+ partnerRemark + ", outsideVisibity=" + outsideVisibity + ", instoreVisibility=" + instoreVisibility
454
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
292
				+ ", outsideStock=" + outsideStock + ", systemKnowledge=" + systemKnowledge + ", workingDevice="
-
 
293
				+ workingDevice + ", workingPrinter=" + workingPrinter + ", carryBags=" + carryBags
-
 
294
				+ ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies=" + latestDummies + ", investment="
-
 
295
				+ investment + ", mtd=" + mtd + ", status=" + status + ", hygiene=" + hygiene + ", createdTimestamp="
-
 
296
				+ createdTimestamp + ", updatedTimestamp=" + updatedTimestamp + ", franchiseActivityId="
-
 
297
				+ franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId + ", getPartnerName()="
-
 
298
				+ getPartnerName() + ", getSchelduleTimestamp()=" + getSchelduleTimestamp() + ", getStatus()="
-
 
299
				+ getStatus() + ", getCreatedBy()=" + getCreatedBy() + ", getAuthId()=" + getAuthId() + ", getId()="
-
 
300
				+ getId() + ", getFofoId()=" + getFofoId() + ", getAgenda()=" + getAgenda() + ", getPartnerRemark()="
-
 
301
				+ getPartnerRemark() + ", getOutsideVisibity()=" + getOutsideVisibity() + ", getInstoreVisibility()="
-
 
302
				+ getInstoreVisibility() + ", getOutsideStock()=" + getOutsideStock() + ", getSystemKnowledge()="
455
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
303
				+ getSystemKnowledge() + ", getWorkingDevice()=" + getWorkingDevice() + ", getWorkingPrinter()="
456
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
304
				+ getWorkingPrinter() + ", getCarryBags()=" + getCarryBags() + ", getSmartdukaanTshirt()="
-
 
305
				+ getSmartdukaanTshirt() + ", getLatestDummies()=" + getLatestDummies() + ", getInvestment()="
457
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
306
				+ getInvestment() + ", getMtd()=" + getMtd() + ", getHygiene()=" + getHygiene()
458
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
307
				+ ", getCreatedTimestamp()=" + getCreatedTimestamp() + ", getUpdatedTimestamp()="
459
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp
308
				+ getUpdatedTimestamp() + ", getFranchiseActivityId()=" + getFranchiseActivityId() + ", getClass()="
460
				+ ", franchiseActivityId=" + franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId
309
				+ getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
461
				+ "]";
310
	}
462
	}
311
 
463
 
312
}
464
}