Subversion Repositories SmartDukaan

Rev

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

Rev 30485 Rev 30487
Line 35... Line 35...
35
	}
35
	}
36
 
36
 
37
	@Transient
37
	@Transient
38
	private FranchiseeActivity franchiseeActivity;
38
	private FranchiseeActivity franchiseeActivity;
39
 
39
 
40
	@Override
-
 
41
	public int hashCode() {
-
 
42
		final int prime = 31;
-
 
43
		int result = 1;
-
 
44
		result = prime * result + ((agenda == null) ? 0 : agenda.hashCode());
-
 
45
		result = prime * result + authId;
-
 
46
		result = prime * result + ((carryBags == null) ? 0 : carryBags.hashCode());
-
 
47
		result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
-
 
48
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
-
 
49
		result = prime * result + fofoId;
-
 
50
		result = prime * result + franchiseActivityId;
-
 
51
		result = prime * result + ((franchiseeActivity == null) ? 0 : franchiseeActivity.hashCode());
-
 
52
		result = prime * result + ((hygiene == null) ? 0 : hygiene.hashCode());
-
 
53
		result = prime * result + id;
-
 
54
		result = prime * result + ((instoreVisibility == null) ? 0 : instoreVisibility.hashCode());
-
 
55
		result = prime * result + ((investment == null) ? 0 : investment.hashCode());
-
 
56
		result = prime * result + ((latestDummies == null) ? 0 : latestDummies.hashCode());
-
 
57
		result = prime * result + mtd;
-
 
58
		result = prime * result + ((outsideStock == null) ? 0 : outsideStock.hashCode());
-
 
59
		result = prime * result + ((outsideVisibity == null) ? 0 : outsideVisibity.hashCode());
-
 
60
		result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
-
 
61
		result = prime * result + ((partnerRemark == null) ? 0 : partnerRemark.hashCode());
-
 
62
		result = prime * result + ((schelduleTimestamp == null) ? 0 : schelduleTimestamp.hashCode());
-
 
63
		result = prime * result + ((smartdukaanTshirt == null) ? 0 : smartdukaanTshirt.hashCode());
-
 
64
		result = prime * result + ((status == null) ? 0 : status.hashCode());
-
 
65
		result = prime * result + ((systemKnowledge == null) ? 0 : systemKnowledge.hashCode());
-
 
66
		result = prime * result + ((updatedTimestamp == null) ? 0 : updatedTimestamp.hashCode());
-
 
67
		result = prime * result + ((workingDevice == null) ? 0 : workingDevice.hashCode());
-
 
68
		result = prime * result + ((workingPrinter == null) ? 0 : workingPrinter.hashCode());
-
 
69
		return result;
-
 
70
	}
-
 
71
 
-
 
72
	@Override
-
 
73
	public boolean equals(Object obj) {
-
 
74
		if (this == obj)
-
 
75
			return true;
-
 
76
		if (obj == null)
-
 
77
			return false;
-
 
78
		if (getClass() != obj.getClass())
-
 
79
			return false;
-
 
80
		FranchiseeVisit other = (FranchiseeVisit) obj;
-
 
81
		if (agenda == null) {
-
 
82
			if (other.agenda != null)
-
 
83
				return false;
-
 
84
		} else if (!agenda.equals(other.agenda))
-
 
85
			return false;
-
 
86
		if (authId != other.authId)
-
 
87
			return false;
-
 
88
		if (carryBags == null) {
-
 
89
			if (other.carryBags != null)
-
 
90
				return false;
-
 
91
		} else if (!carryBags.equals(other.carryBags))
-
 
92
			return false;
-
 
93
		if (createdBy == null) {
-
 
94
			if (other.createdBy != null)
-
 
95
				return false;
-
 
96
		} else if (!createdBy.equals(other.createdBy))
-
 
97
			return false;
-
 
98
		if (createdTimestamp == null) {
-
 
99
			if (other.createdTimestamp != null)
-
 
100
				return false;
-
 
101
		} else if (!createdTimestamp.equals(other.createdTimestamp))
-
 
102
			return false;
-
 
103
		if (fofoId != other.fofoId)
-
 
104
			return false;
-
 
105
		if (franchiseActivityId != other.franchiseActivityId)
-
 
106
			return false;
-
 
107
		if (franchiseeActivity == null) {
-
 
108
			if (other.franchiseeActivity != null)
-
 
109
				return false;
-
 
110
		} else if (!franchiseeActivity.equals(other.franchiseeActivity))
-
 
111
			return false;
-
 
112
		if (hygiene == null) {
-
 
113
			if (other.hygiene != null)
-
 
114
				return false;
-
 
115
		} else if (!hygiene.equals(other.hygiene))
-
 
116
			return false;
-
 
117
		if (id != other.id)
-
 
118
			return false;
-
 
119
		if (instoreVisibility == null) {
-
 
120
			if (other.instoreVisibility != null)
-
 
121
				return false;
-
 
122
		} else if (!instoreVisibility.equals(other.instoreVisibility))
-
 
123
			return false;
-
 
124
		if (investment == null) {
-
 
125
			if (other.investment != null)
-
 
126
				return false;
-
 
127
		} else if (!investment.equals(other.investment))
-
 
128
			return false;
-
 
129
		if (latestDummies == null) {
-
 
130
			if (other.latestDummies != null)
-
 
131
				return false;
-
 
132
		} else if (!latestDummies.equals(other.latestDummies))
-
 
133
			return false;
-
 
134
		if (mtd != other.mtd)
-
 
135
			return false;
-
 
136
		if (outsideStock == null) {
-
 
137
			if (other.outsideStock != null)
-
 
138
				return false;
-
 
139
		} else if (!outsideStock.equals(other.outsideStock))
-
 
140
			return false;
-
 
141
		if (outsideVisibity == null) {
-
 
142
			if (other.outsideVisibity != null)
-
 
143
				return false;
-
 
144
		} else if (!outsideVisibity.equals(other.outsideVisibity))
-
 
145
			return false;
-
 
146
		if (partnerName == null) {
-
 
147
			if (other.partnerName != null)
-
 
148
				return false;
-
 
149
		} else if (!partnerName.equals(other.partnerName))
-
 
150
			return false;
-
 
151
		if (partnerRemark == null) {
-
 
152
			if (other.partnerRemark != null)
-
 
153
				return false;
-
 
154
		} else if (!partnerRemark.equals(other.partnerRemark))
-
 
155
			return false;
-
 
156
		if (schelduleTimestamp == null) {
-
 
157
			if (other.schelduleTimestamp != null)
-
 
158
				return false;
-
 
159
		} else if (!schelduleTimestamp.equals(other.schelduleTimestamp))
-
 
160
			return false;
-
 
161
		if (smartdukaanTshirt == null) {
-
 
162
			if (other.smartdukaanTshirt != null)
-
 
163
				return false;
-
 
164
		} else if (!smartdukaanTshirt.equals(other.smartdukaanTshirt))
-
 
165
			return false;
-
 
166
		if (status != other.status)
-
 
167
			return false;
-
 
168
		if (systemKnowledge == null) {
-
 
169
			if (other.systemKnowledge != null)
-
 
170
				return false;
-
 
171
		} else if (!systemKnowledge.equals(other.systemKnowledge))
-
 
172
			return false;
-
 
173
		if (updatedTimestamp == null) {
-
 
174
			if (other.updatedTimestamp != null)
-
 
175
				return false;
-
 
176
		} else if (!updatedTimestamp.equals(other.updatedTimestamp))
-
 
177
			return false;
-
 
178
		if (workingDevice == null) {
-
 
179
			if (other.workingDevice != null)
-
 
180
				return false;
-
 
181
		} else if (!workingDevice.equals(other.workingDevice))
-
 
182
			return false;
-
 
183
		if (workingPrinter == null) {
-
 
184
			if (other.workingPrinter != null)
-
 
185
				return false;
-
 
186
		} else if (!workingPrinter.equals(other.workingPrinter))
-
 
187
			return false;
-
 
188
		return true;
-
 
189
	}
-
 
190
 
-
 
191
	public FranchiseeActivity getFranchiseeActivity() {
-
 
192
		return franchiseeActivity;
-
 
193
	}
-
 
194
 
-
 
195
	public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
-
 
196
		this.franchiseeActivity = franchiseeActivity;
-
 
197
	}
-
 
198
 
-
 
199
	public void setPartnerName(String partnerName) {
-
 
200
		this.partnerName = partnerName;
-
 
201
	}
-
 
202
 
-
 
203
	@Column(name = "schedule_timestamp")
40
	@Column(name = "schedule_timestamp")
204
	private LocalDateTime schelduleTimestamp;
41
	private LocalDateTime schelduleTimestamp;
205
 
42
 
206
	public LocalDateTime getSchelduleTimestamp() {
-
 
207
		return schelduleTimestamp;
-
 
208
	}
-
 
209
 
-
 
210
	public void setSchelduleTimestamp(LocalDateTime schelduleTimestamp) {
-
 
211
		this.schelduleTimestamp = schelduleTimestamp;
-
 
212
	}
-
 
213
 
-
 
214
	@Column(name = "agenda")
43
	@Column(name = "agenda")
215
	private String agenda;
44
	private String agenda;
216
 
45
 
217
	@Column(name = "partner_remark")
46
	@Column(name = "partner_remark")
218
	private String partnerRemark;
47
	private String partnerRemark;
Line 258... Line 87...
258
	private String hygiene;
87
	private String hygiene;
259
 
88
 
260
	@Column(name = "created_timestamp")
89
	@Column(name = "created_timestamp")
261
	private LocalDateTime createdTimestamp;
90
	private LocalDateTime createdTimestamp;
262
 
91
 
-
 
92
	@Column(name = "pending_billing")
-
 
93
	private int pendingBilling;
-
 
94
 
-
 
95
	@Column(name = "informed_about_online")
-
 
96
	private String informedAboutOnline;
-
 
97
 
263
	@Column(name = "updated_timestamp")
98
	@Column(name = "updated_timestamp")
264
	private LocalDateTime updatedTimestamp;
99
	private LocalDateTime updatedTimestamp;
265
 
100
 
266
	@Transient
101
	@Transient
267
	private List<String> brands;
102
	private List<String> brands;
268
 
103
 
-
 
104
	@Column(name = "franchise_activity_id")
-
 
105
	private int franchiseActivityId;
-
 
106
 
-
 
107
	@Column(name = "created_by")
-
 
108
	private String createdBy;
-
 
109
 
-
 
110
	@Column(name = "auth_id")
-
 
111
	private int authId;
-
 
112
 
-
 
113
	public LocalDateTime getSchelduleTimestamp() {
-
 
114
		return schelduleTimestamp;
-
 
115
	}
-
 
116
 
-
 
117
	public void setSchelduleTimestamp(LocalDateTime schelduleTimestamp) {
-
 
118
		this.schelduleTimestamp = schelduleTimestamp;
-
 
119
	}
-
 
120
 
269
	public List<String> getBrands() {
121
	public List<String> getBrands() {
270
		return brands;
122
		return brands;
271
	}
123
	}
272
 
124
 
273
	public void setBrands(List<String> brands) {
125
	public void setBrands(List<String> brands) {
Line 280... Line 132...
280
 
132
 
281
	public void setStatus(FranchiseeVisitStatus status) {
133
	public void setStatus(FranchiseeVisitStatus status) {
282
		this.status = status;
134
		this.status = status;
283
	}
135
	}
284
 
136
 
285
	@Column(name = "franchise_activity_id")
137
	public FranchiseeActivity getFranchiseeActivity() {
286
	private int franchiseActivityId;
138
		return franchiseeActivity;
-
 
139
	}
287
 
140
 
288
	@Column(name = "created_by")
141
	public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
289
	private String createdBy;
142
		this.franchiseeActivity = franchiseeActivity;
-
 
143
	}
290
 
144
 
-
 
145
	public int getPendingBilling() {
-
 
146
		return pendingBilling;
-
 
147
	}
-
 
148
 
-
 
149
	public void setPendingBilling(int pendingBilling) {
-
 
150
		this.pendingBilling = pendingBilling;
-
 
151
	}
-
 
152
 
-
 
153
	public String getInformedAboutOnline() {
291
	@Column(name = "auth_id")
154
		return informedAboutOnline;
-
 
155
	}
-
 
156
 
-
 
157
	public void setInformedAboutOnline(String informedAboutOnline) {
-
 
158
		this.informedAboutOnline = informedAboutOnline;
-
 
159
	}
-
 
160
 
-
 
161
	public void setPartnerName(String partnerName) {
292
	private int authId;
162
		this.partnerName = partnerName;
-
 
163
	}
293
 
164
 
294
	public String getCreatedBy() {
165
	public String getCreatedBy() {
295
		return createdBy;
166
		return createdBy;
296
	}
167
	}
297
 
168
 
Line 458... Line 329...
458
	public void setFranchiseActivityId(int franchiseActivityId) {
329
	public void setFranchiseActivityId(int franchiseActivityId) {
459
		this.franchiseActivityId = franchiseActivityId;
330
		this.franchiseActivityId = franchiseActivityId;
460
	}
331
	}
461
 
332
 
462
	@Override
333
	@Override
-
 
334
	public int hashCode() {
-
 
335
		final int prime = 31;
-
 
336
		int result = 1;
-
 
337
		result = prime * result + ((agenda == null) ? 0 : agenda.hashCode());
-
 
338
		result = prime * result + authId;
-
 
339
		result = prime * result + ((brands == null) ? 0 : brands.hashCode());
-
 
340
		result = prime * result + ((carryBags == null) ? 0 : carryBags.hashCode());
-
 
341
		result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
-
 
342
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
-
 
343
		result = prime * result + fofoId;
-
 
344
		result = prime * result + franchiseActivityId;
-
 
345
		result = prime * result + ((franchiseeActivity == null) ? 0 : franchiseeActivity.hashCode());
-
 
346
		result = prime * result + ((hygiene == null) ? 0 : hygiene.hashCode());
-
 
347
		result = prime * result + id;
-
 
348
		result = prime * result + ((informedAboutOnline == null) ? 0 : informedAboutOnline.hashCode());
-
 
349
		result = prime * result + ((instoreVisibility == null) ? 0 : instoreVisibility.hashCode());
-
 
350
		result = prime * result + ((investment == null) ? 0 : investment.hashCode());
-
 
351
		result = prime * result + ((latestDummies == null) ? 0 : latestDummies.hashCode());
-
 
352
		result = prime * result + mtd;
-
 
353
		result = prime * result + ((outsideStock == null) ? 0 : outsideStock.hashCode());
-
 
354
		result = prime * result + ((outsideVisibity == null) ? 0 : outsideVisibity.hashCode());
-
 
355
		result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
-
 
356
		result = prime * result + ((partnerRemark == null) ? 0 : partnerRemark.hashCode());
-
 
357
		result = prime * result + pendingBilling;
-
 
358
		result = prime * result + ((schelduleTimestamp == null) ? 0 : schelduleTimestamp.hashCode());
-
 
359
		result = prime * result + ((smartdukaanTshirt == null) ? 0 : smartdukaanTshirt.hashCode());
-
 
360
		result = prime * result + ((status == null) ? 0 : status.hashCode());
-
 
361
		result = prime * result + ((systemKnowledge == null) ? 0 : systemKnowledge.hashCode());
-
 
362
		result = prime * result + ((updatedTimestamp == null) ? 0 : updatedTimestamp.hashCode());
-
 
363
		result = prime * result + ((workingDevice == null) ? 0 : workingDevice.hashCode());
-
 
364
		result = prime * result + ((workingPrinter == null) ? 0 : workingPrinter.hashCode());
-
 
365
		return result;
-
 
366
	}
-
 
367
 
-
 
368
	@Override
-
 
369
	public boolean equals(Object obj) {
-
 
370
		if (this == obj)
-
 
371
			return true;
-
 
372
		if (obj == null)
-
 
373
			return false;
-
 
374
		if (getClass() != obj.getClass())
-
 
375
			return false;
-
 
376
		FranchiseeVisit other = (FranchiseeVisit) obj;
-
 
377
		if (agenda == null) {
-
 
378
			if (other.agenda != null)
-
 
379
				return false;
-
 
380
		} else if (!agenda.equals(other.agenda))
-
 
381
			return false;
-
 
382
		if (authId != other.authId)
-
 
383
			return false;
-
 
384
		if (brands == null) {
-
 
385
			if (other.brands != null)
-
 
386
				return false;
-
 
387
		} else if (!brands.equals(other.brands))
-
 
388
			return false;
-
 
389
		if (carryBags == null) {
-
 
390
			if (other.carryBags != null)
-
 
391
				return false;
-
 
392
		} else if (!carryBags.equals(other.carryBags))
-
 
393
			return false;
-
 
394
		if (createdBy == null) {
-
 
395
			if (other.createdBy != null)
-
 
396
				return false;
-
 
397
		} else if (!createdBy.equals(other.createdBy))
-
 
398
			return false;
-
 
399
		if (createdTimestamp == null) {
-
 
400
			if (other.createdTimestamp != null)
-
 
401
				return false;
-
 
402
		} else if (!createdTimestamp.equals(other.createdTimestamp))
-
 
403
			return false;
-
 
404
		if (fofoId != other.fofoId)
-
 
405
			return false;
-
 
406
		if (franchiseActivityId != other.franchiseActivityId)
-
 
407
			return false;
-
 
408
		if (franchiseeActivity == null) {
-
 
409
			if (other.franchiseeActivity != null)
-
 
410
				return false;
-
 
411
		} else if (!franchiseeActivity.equals(other.franchiseeActivity))
-
 
412
			return false;
-
 
413
		if (hygiene == null) {
-
 
414
			if (other.hygiene != null)
-
 
415
				return false;
-
 
416
		} else if (!hygiene.equals(other.hygiene))
-
 
417
			return false;
-
 
418
		if (id != other.id)
-
 
419
			return false;
-
 
420
		if (informedAboutOnline == null) {
-
 
421
			if (other.informedAboutOnline != null)
-
 
422
				return false;
-
 
423
		} else if (!informedAboutOnline.equals(other.informedAboutOnline))
-
 
424
			return false;
-
 
425
		if (instoreVisibility == null) {
-
 
426
			if (other.instoreVisibility != null)
-
 
427
				return false;
-
 
428
		} else if (!instoreVisibility.equals(other.instoreVisibility))
-
 
429
			return false;
-
 
430
		if (investment == null) {
-
 
431
			if (other.investment != null)
-
 
432
				return false;
-
 
433
		} else if (!investment.equals(other.investment))
-
 
434
			return false;
-
 
435
		if (latestDummies == null) {
-
 
436
			if (other.latestDummies != null)
-
 
437
				return false;
-
 
438
		} else if (!latestDummies.equals(other.latestDummies))
-
 
439
			return false;
-
 
440
		if (mtd != other.mtd)
-
 
441
			return false;
-
 
442
		if (outsideStock == null) {
-
 
443
			if (other.outsideStock != null)
-
 
444
				return false;
-
 
445
		} else if (!outsideStock.equals(other.outsideStock))
-
 
446
			return false;
-
 
447
		if (outsideVisibity == null) {
-
 
448
			if (other.outsideVisibity != null)
-
 
449
				return false;
-
 
450
		} else if (!outsideVisibity.equals(other.outsideVisibity))
-
 
451
			return false;
-
 
452
		if (partnerName == null) {
-
 
453
			if (other.partnerName != null)
-
 
454
				return false;
-
 
455
		} else if (!partnerName.equals(other.partnerName))
-
 
456
			return false;
-
 
457
		if (partnerRemark == null) {
-
 
458
			if (other.partnerRemark != null)
-
 
459
				return false;
-
 
460
		} else if (!partnerRemark.equals(other.partnerRemark))
-
 
461
			return false;
-
 
462
		if (pendingBilling != other.pendingBilling)
-
 
463
			return false;
-
 
464
		if (schelduleTimestamp == null) {
-
 
465
			if (other.schelduleTimestamp != null)
-
 
466
				return false;
-
 
467
		} else if (!schelduleTimestamp.equals(other.schelduleTimestamp))
-
 
468
			return false;
-
 
469
		if (smartdukaanTshirt == null) {
-
 
470
			if (other.smartdukaanTshirt != null)
-
 
471
				return false;
-
 
472
		} else if (!smartdukaanTshirt.equals(other.smartdukaanTshirt))
-
 
473
			return false;
-
 
474
		if (status != other.status)
-
 
475
			return false;
-
 
476
		if (systemKnowledge == null) {
-
 
477
			if (other.systemKnowledge != null)
-
 
478
				return false;
-
 
479
		} else if (!systemKnowledge.equals(other.systemKnowledge))
-
 
480
			return false;
-
 
481
		if (updatedTimestamp == null) {
-
 
482
			if (other.updatedTimestamp != null)
-
 
483
				return false;
-
 
484
		} else if (!updatedTimestamp.equals(other.updatedTimestamp))
-
 
485
			return false;
-
 
486
		if (workingDevice == null) {
-
 
487
			if (other.workingDevice != null)
-
 
488
				return false;
-
 
489
		} else if (!workingDevice.equals(other.workingDevice))
-
 
490
			return false;
-
 
491
		if (workingPrinter == null) {
-
 
492
			if (other.workingPrinter != null)
-
 
493
				return false;
-
 
494
		} else if (!workingPrinter.equals(other.workingPrinter))
-
 
495
			return false;
-
 
496
		return true;
-
 
497
	}
-
 
498
 
-
 
499
	@Override
463
	public String toString() {
500
	public String toString() {
464
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
501
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
465
				+ ", franchiseeActivity=" + franchiseeActivity + ", schelduleTimestamp=" + schelduleTimestamp
502
				+ ", franchiseeActivity=" + franchiseeActivity + ", schelduleTimestamp=" + schelduleTimestamp
466
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
503
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
467
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
504
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
468
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
505
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
469
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
506
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
470
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
507
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
471
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp
508
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", pendingBilling=" + pendingBilling
-
 
509
				+ ", informedAboutOnline=" + informedAboutOnline + ", updatedTimestamp=" + updatedTimestamp
472
				+ ", franchiseActivityId=" + franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId
510
				+ ", brands=" + brands + ", franchiseActivityId=" + franchiseActivityId + ", createdBy=" + createdBy
473
				+ "]";
511
				+ ", authId=" + authId + "]";
474
	}
512
	}
475
 
513
 
476
}
514
}