Subversion Repositories SmartDukaan

Rev

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