Subversion Repositories SmartDukaan

Rev

Rev 31185 | Rev 31860 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25903 tejbeer 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import java.time.LocalDateTime;
30485 tejbeer 4
import java.util.List;
25903 tejbeer 5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
25927 amit.gupta 14
import javax.persistence.Transient;
25903 tejbeer 15
 
16
import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeVisitStatus;
31249 tejbeer 17
import com.spice.profitmandi.dao.enumuration.dtr.VisitStatus;
25903 tejbeer 18
 
19
@Entity
20
@Table(name = "user.my_franchisee_visit", schema = "user")
21
public class FranchiseeVisit {
22
 
23
	@Id
24
	@Column(name = "id", unique = true, updatable = false)
25
	@GeneratedValue(strategy = GenerationType.IDENTITY)
26
	private int id;
27
 
28
	@Column(name = "fofo_id")
29
	private int fofoId;
30
 
31
	@Column(name = "partner_name")
32
	private String partnerName;
33
 
34
	public String getPartnerName() {
35
		return partnerName;
36
	}
25952 tejbeer 37
 
25927 amit.gupta 38
	@Transient
39
	private FranchiseeActivity franchiseeActivity;
25903 tejbeer 40
 
25906 tejbeer 41
	@Column(name = "schedule_timestamp")
30522 tejbeer 42
	private LocalDateTime scheduleTimestamp;
25906 tejbeer 43
 
25903 tejbeer 44
	@Column(name = "agenda")
45
	private String agenda;
46
 
47
	@Column(name = "partner_remark")
48
	private String partnerRemark;
49
 
50
	@Column(name = "outside_visibity")
51
	private String outsideVisibity;
52
 
53
	@Column(name = "instore_visibility")
54
	private String instoreVisibility;
55
 
56
	@Column(name = "outside_stock")
57
	private String outsideStock;
58
 
59
	@Column(name = "system_knowledge")
60
	private String systemKnowledge;
61
 
62
	@Column(name = "working_device")
63
	private String workingDevice;
64
 
65
	@Column(name = "working_printer")
66
	private String workingPrinter;
67
 
68
	@Column(name = "carry_bags")
69
	private String carryBags;
70
 
71
	@Column(name = "smartdukaan_tshirt")
72
	private String smartdukaanTshirt;
73
 
74
	@Column(name = "latest_dummies")
75
	private String latestDummies;
76
 
77
	@Column(name = "investment")
78
	private String investment;
79
 
80
	@Column(name = "mtd")
81
	private int mtd;
82
 
83
	@Column(name = "status")
84
	@Enumerated(EnumType.STRING)
85
	private FranchiseeVisitStatus status;
86
 
87
	@Column(name = "hygiene")
88
	private String hygiene;
89
 
90
	@Column(name = "created_timestamp")
91
	private LocalDateTime createdTimestamp;
92
 
30487 tejbeer 93
	@Column(name = "pending_billing")
94
	private int pendingBilling;
95
 
96
	@Column(name = "informed_about_online")
97
	private String informedAboutOnline;
98
 
25903 tejbeer 99
	@Column(name = "updated_timestamp")
100
	private LocalDateTime updatedTimestamp;
101
 
30542 tejbeer 102
	@Column(name = "visit_timestamp")
103
	private LocalDateTime visitTimestamp;
104
 
30485 tejbeer 105
	@Transient
106
	private List<String> brands;
107
 
30487 tejbeer 108
	@Column(name = "franchise_activity_id")
109
	private int franchiseActivityId;
110
 
111
	@Column(name = "created_by")
112
	private String createdBy;
113
 
114
	@Column(name = "auth_id")
115
	private int authId;
116
 
31249 tejbeer 117
	@Transient
118
	private VisitStatus visitStatus;
119
 
120
	public VisitStatus getVisitStatus() {
121
		return visitStatus;
122
	}
123
 
124
	public void setVisitStatus(VisitStatus visitStatus) {
125
		this.visitStatus = visitStatus;
126
	}
127
 
30522 tejbeer 128
	public LocalDateTime getScheduleTimestamp() {
129
		return scheduleTimestamp;
30487 tejbeer 130
	}
131
 
30522 tejbeer 132
	public void setScheduleTimestamp(LocalDateTime schelduleTimestamp) {
133
		this.scheduleTimestamp = schelduleTimestamp;
30487 tejbeer 134
	}
135
 
30485 tejbeer 136
	public List<String> getBrands() {
137
		return brands;
138
	}
139
 
140
	public void setBrands(List<String> brands) {
141
		this.brands = brands;
142
	}
143
 
25903 tejbeer 144
	public FranchiseeVisitStatus getStatus() {
145
		return status;
146
	}
147
 
148
	public void setStatus(FranchiseeVisitStatus status) {
149
		this.status = status;
150
	}
151
 
30487 tejbeer 152
	public FranchiseeActivity getFranchiseeActivity() {
153
		return franchiseeActivity;
154
	}
25903 tejbeer 155
 
30487 tejbeer 156
	public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
157
		this.franchiseeActivity = franchiseeActivity;
158
	}
25903 tejbeer 159
 
30487 tejbeer 160
	public int getPendingBilling() {
161
		return pendingBilling;
162
	}
25903 tejbeer 163
 
30542 tejbeer 164
	public LocalDateTime getVisitTimestamp() {
165
		return visitTimestamp;
166
	}
167
 
168
	public void setVisitTimestamp(LocalDateTime visitTimestamp) {
169
		this.visitTimestamp = visitTimestamp;
170
	}
171
 
30487 tejbeer 172
	public void setPendingBilling(int pendingBilling) {
173
		this.pendingBilling = pendingBilling;
174
	}
175
 
176
	public String getInformedAboutOnline() {
177
		return informedAboutOnline;
178
	}
179
 
180
	public void setInformedAboutOnline(String informedAboutOnline) {
181
		this.informedAboutOnline = informedAboutOnline;
182
	}
183
 
184
	public void setPartnerName(String partnerName) {
185
		this.partnerName = partnerName;
186
	}
187
 
25903 tejbeer 188
	public String getCreatedBy() {
189
		return createdBy;
190
	}
191
 
192
	public void setCreatedBy(String createdBy) {
193
		this.createdBy = createdBy;
194
	}
195
 
196
	public int getAuthId() {
197
		return authId;
198
	}
199
 
200
	public void setAuthId(int authId) {
201
		this.authId = authId;
202
	}
203
 
204
	public int getId() {
205
		return id;
206
	}
207
 
208
	public void setId(int id) {
209
		this.id = id;
210
	}
211
 
212
	public int getFofoId() {
213
		return fofoId;
214
	}
215
 
216
	public void setFofoId(int fofoId) {
217
		this.fofoId = fofoId;
218
	}
219
 
220
	public String getAgenda() {
221
		return agenda;
222
	}
223
 
224
	public void setAgenda(String agenda) {
225
		this.agenda = agenda;
226
	}
227
 
228
	public String getPartnerRemark() {
229
		return partnerRemark;
230
	}
231
 
232
	public void setPartnerRemark(String partnerRemark) {
233
		this.partnerRemark = partnerRemark;
234
	}
235
 
236
	public String getOutsideVisibity() {
237
		return outsideVisibity;
238
	}
239
 
240
	public void setOutsideVisibity(String outsideVisibity) {
241
		this.outsideVisibity = outsideVisibity;
242
	}
243
 
244
	public String getInstoreVisibility() {
245
		return instoreVisibility;
246
	}
247
 
248
	public void setInstoreVisibility(String instoreVisibility) {
249
		this.instoreVisibility = instoreVisibility;
250
	}
251
 
252
	public String getOutsideStock() {
253
		return outsideStock;
254
	}
255
 
256
	public void setOutsideStock(String outsideStock) {
257
		this.outsideStock = outsideStock;
258
	}
259
 
260
	public String getSystemKnowledge() {
261
		return systemKnowledge;
262
	}
263
 
264
	public void setSystemKnowledge(String systemKnowledge) {
265
		this.systemKnowledge = systemKnowledge;
266
	}
267
 
268
	public String getWorkingDevice() {
269
		return workingDevice;
270
	}
271
 
272
	public void setWorkingDevice(String workingDevice) {
273
		this.workingDevice = workingDevice;
274
	}
275
 
276
	public String getWorkingPrinter() {
277
		return workingPrinter;
278
	}
279
 
280
	public void setWorkingPrinter(String workingPrinter) {
281
		this.workingPrinter = workingPrinter;
282
	}
283
 
284
	public String getCarryBags() {
285
		return carryBags;
286
	}
287
 
288
	public void setCarryBags(String carryBags) {
289
		this.carryBags = carryBags;
290
	}
291
 
292
	public String getSmartdukaanTshirt() {
293
		return smartdukaanTshirt;
294
	}
295
 
296
	public void setSmartdukaanTshirt(String smartdukaanTshirt) {
297
		this.smartdukaanTshirt = smartdukaanTshirt;
298
	}
299
 
300
	public String getLatestDummies() {
301
		return latestDummies;
302
	}
303
 
304
	public void setLatestDummies(String latestDummies) {
305
		this.latestDummies = latestDummies;
306
	}
307
 
308
	public String getInvestment() {
309
		return investment;
310
	}
311
 
312
	public void setInvestment(String investment) {
313
		this.investment = investment;
314
	}
315
 
316
	public int getMtd() {
317
		return mtd;
318
	}
319
 
30542 tejbeer 320
	public void setMtd(int mtd) {
31185 tejbeer 321
		this.mtd = mtd;
30542 tejbeer 322
	}
25903 tejbeer 323
 
324
	public String getHygiene() {
325
		return hygiene;
326
	}
327
 
328
	public void setHygiene(String hygiene) {
329
		this.hygiene = hygiene;
330
	}
331
 
332
	public LocalDateTime getCreatedTimestamp() {
333
		return createdTimestamp;
334
	}
335
 
336
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
337
		this.createdTimestamp = createdTimestamp;
338
	}
339
 
340
	public LocalDateTime getUpdatedTimestamp() {
341
		return updatedTimestamp;
342
	}
343
 
344
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
345
		this.updatedTimestamp = updatedTimestamp;
346
	}
347
 
348
	public int getFranchiseActivityId() {
349
		return franchiseActivityId;
350
	}
351
 
352
	public void setFranchiseActivityId(int franchiseActivityId) {
353
		this.franchiseActivityId = franchiseActivityId;
354
	}
355
 
356
	@Override
30487 tejbeer 357
	public int hashCode() {
358
		final int prime = 31;
359
		int result = 1;
360
		result = prime * result + ((agenda == null) ? 0 : agenda.hashCode());
361
		result = prime * result + authId;
362
		result = prime * result + ((brands == null) ? 0 : brands.hashCode());
363
		result = prime * result + ((carryBags == null) ? 0 : carryBags.hashCode());
364
		result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
365
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
366
		result = prime * result + fofoId;
367
		result = prime * result + franchiseActivityId;
368
		result = prime * result + ((franchiseeActivity == null) ? 0 : franchiseeActivity.hashCode());
369
		result = prime * result + ((hygiene == null) ? 0 : hygiene.hashCode());
370
		result = prime * result + id;
371
		result = prime * result + ((informedAboutOnline == null) ? 0 : informedAboutOnline.hashCode());
372
		result = prime * result + ((instoreVisibility == null) ? 0 : instoreVisibility.hashCode());
373
		result = prime * result + ((investment == null) ? 0 : investment.hashCode());
374
		result = prime * result + ((latestDummies == null) ? 0 : latestDummies.hashCode());
375
		result = prime * result + mtd;
376
		result = prime * result + ((outsideStock == null) ? 0 : outsideStock.hashCode());
377
		result = prime * result + ((outsideVisibity == null) ? 0 : outsideVisibity.hashCode());
378
		result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
379
		result = prime * result + ((partnerRemark == null) ? 0 : partnerRemark.hashCode());
380
		result = prime * result + pendingBilling;
30522 tejbeer 381
		result = prime * result + ((scheduleTimestamp == null) ? 0 : scheduleTimestamp.hashCode());
30487 tejbeer 382
		result = prime * result + ((smartdukaanTshirt == null) ? 0 : smartdukaanTshirt.hashCode());
383
		result = prime * result + ((status == null) ? 0 : status.hashCode());
384
		result = prime * result + ((systemKnowledge == null) ? 0 : systemKnowledge.hashCode());
385
		result = prime * result + ((updatedTimestamp == null) ? 0 : updatedTimestamp.hashCode());
30542 tejbeer 386
		result = prime * result + ((visitTimestamp == null) ? 0 : visitTimestamp.hashCode());
30487 tejbeer 387
		result = prime * result + ((workingDevice == null) ? 0 : workingDevice.hashCode());
388
		result = prime * result + ((workingPrinter == null) ? 0 : workingPrinter.hashCode());
389
		return result;
390
	}
391
 
392
	@Override
393
	public boolean equals(Object obj) {
394
		if (this == obj)
395
			return true;
396
		if (obj == null)
397
			return false;
398
		if (getClass() != obj.getClass())
399
			return false;
400
		FranchiseeVisit other = (FranchiseeVisit) obj;
401
		if (agenda == null) {
402
			if (other.agenda != null)
403
				return false;
404
		} else if (!agenda.equals(other.agenda))
405
			return false;
406
		if (authId != other.authId)
407
			return false;
408
		if (brands == null) {
409
			if (other.brands != null)
410
				return false;
411
		} else if (!brands.equals(other.brands))
412
			return false;
413
		if (carryBags == null) {
414
			if (other.carryBags != null)
415
				return false;
416
		} else if (!carryBags.equals(other.carryBags))
417
			return false;
418
		if (createdBy == null) {
419
			if (other.createdBy != null)
420
				return false;
421
		} else if (!createdBy.equals(other.createdBy))
422
			return false;
423
		if (createdTimestamp == null) {
424
			if (other.createdTimestamp != null)
425
				return false;
426
		} else if (!createdTimestamp.equals(other.createdTimestamp))
427
			return false;
428
		if (fofoId != other.fofoId)
429
			return false;
430
		if (franchiseActivityId != other.franchiseActivityId)
431
			return false;
432
		if (franchiseeActivity == null) {
433
			if (other.franchiseeActivity != null)
434
				return false;
435
		} else if (!franchiseeActivity.equals(other.franchiseeActivity))
436
			return false;
437
		if (hygiene == null) {
438
			if (other.hygiene != null)
439
				return false;
440
		} else if (!hygiene.equals(other.hygiene))
441
			return false;
442
		if (id != other.id)
443
			return false;
444
		if (informedAboutOnline == null) {
445
			if (other.informedAboutOnline != null)
446
				return false;
447
		} else if (!informedAboutOnline.equals(other.informedAboutOnline))
448
			return false;
449
		if (instoreVisibility == null) {
450
			if (other.instoreVisibility != null)
451
				return false;
452
		} else if (!instoreVisibility.equals(other.instoreVisibility))
453
			return false;
454
		if (investment == null) {
455
			if (other.investment != null)
456
				return false;
457
		} else if (!investment.equals(other.investment))
458
			return false;
459
		if (latestDummies == null) {
460
			if (other.latestDummies != null)
461
				return false;
462
		} else if (!latestDummies.equals(other.latestDummies))
463
			return false;
464
		if (mtd != other.mtd)
465
			return false;
466
		if (outsideStock == null) {
467
			if (other.outsideStock != null)
468
				return false;
469
		} else if (!outsideStock.equals(other.outsideStock))
470
			return false;
471
		if (outsideVisibity == null) {
472
			if (other.outsideVisibity != null)
473
				return false;
474
		} else if (!outsideVisibity.equals(other.outsideVisibity))
475
			return false;
476
		if (partnerName == null) {
477
			if (other.partnerName != null)
478
				return false;
479
		} else if (!partnerName.equals(other.partnerName))
480
			return false;
481
		if (partnerRemark == null) {
482
			if (other.partnerRemark != null)
483
				return false;
484
		} else if (!partnerRemark.equals(other.partnerRemark))
485
			return false;
486
		if (pendingBilling != other.pendingBilling)
487
			return false;
30522 tejbeer 488
		if (scheduleTimestamp == null) {
489
			if (other.scheduleTimestamp != null)
30487 tejbeer 490
				return false;
30522 tejbeer 491
		} else if (!scheduleTimestamp.equals(other.scheduleTimestamp))
30487 tejbeer 492
			return false;
493
		if (smartdukaanTshirt == null) {
494
			if (other.smartdukaanTshirt != null)
495
				return false;
496
		} else if (!smartdukaanTshirt.equals(other.smartdukaanTshirt))
497
			return false;
498
		if (status != other.status)
499
			return false;
500
		if (systemKnowledge == null) {
501
			if (other.systemKnowledge != null)
502
				return false;
503
		} else if (!systemKnowledge.equals(other.systemKnowledge))
504
			return false;
505
		if (updatedTimestamp == null) {
506
			if (other.updatedTimestamp != null)
507
				return false;
508
		} else if (!updatedTimestamp.equals(other.updatedTimestamp))
509
			return false;
30542 tejbeer 510
		if (visitTimestamp == null) {
511
			if (other.visitTimestamp != null)
512
				return false;
513
		} else if (!visitTimestamp.equals(other.visitTimestamp))
514
			return false;
30487 tejbeer 515
		if (workingDevice == null) {
516
			if (other.workingDevice != null)
517
				return false;
518
		} else if (!workingDevice.equals(other.workingDevice))
519
			return false;
520
		if (workingPrinter == null) {
521
			if (other.workingPrinter != null)
522
				return false;
523
		} else if (!workingPrinter.equals(other.workingPrinter))
524
			return false;
525
		return true;
526
	}
527
 
528
	@Override
25903 tejbeer 529
	public String toString() {
25906 tejbeer 530
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
30522 tejbeer 531
				+ ", franchiseeActivity=" + franchiseeActivity + ", scheduleTimestamp=" + scheduleTimestamp
25927 amit.gupta 532
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
533
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
534
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
535
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
536
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
30487 tejbeer 537
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", pendingBilling=" + pendingBilling
538
				+ ", informedAboutOnline=" + informedAboutOnline + ", updatedTimestamp=" + updatedTimestamp
30542 tejbeer 539
				+ ", visitTimestamp=" + visitTimestamp + ", brands=" + brands + ", franchiseActivityId="
31249 tejbeer 540
				+ franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId + ", visitStatus="
541
				+ visitStatus + "]";
25903 tejbeer 542
	}
543
 
544
}