Subversion Repositories SmartDukaan

Rev

Rev 30485 | Rev 30522 | 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")
41
	private LocalDateTime schelduleTimestamp;
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
 
30485 tejbeer 101
	@Transient
102
	private List<String> brands;
103
 
30487 tejbeer 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
 
30485 tejbeer 121
	public List<String> getBrands() {
122
		return brands;
123
	}
124
 
125
	public void setBrands(List<String> brands) {
126
		this.brands = brands;
127
	}
128
 
25903 tejbeer 129
	public FranchiseeVisitStatus getStatus() {
130
		return status;
131
	}
132
 
133
	public void setStatus(FranchiseeVisitStatus status) {
134
		this.status = status;
135
	}
136
 
30487 tejbeer 137
	public FranchiseeActivity getFranchiseeActivity() {
138
		return franchiseeActivity;
139
	}
25903 tejbeer 140
 
30487 tejbeer 141
	public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
142
		this.franchiseeActivity = franchiseeActivity;
143
	}
25903 tejbeer 144
 
30487 tejbeer 145
	public int getPendingBilling() {
146
		return pendingBilling;
147
	}
25903 tejbeer 148
 
30487 tejbeer 149
	public void setPendingBilling(int pendingBilling) {
150
		this.pendingBilling = pendingBilling;
151
	}
152
 
153
	public String getInformedAboutOnline() {
154
		return informedAboutOnline;
155
	}
156
 
157
	public void setInformedAboutOnline(String informedAboutOnline) {
158
		this.informedAboutOnline = informedAboutOnline;
159
	}
160
 
161
	public void setPartnerName(String partnerName) {
162
		this.partnerName = partnerName;
163
	}
164
 
25903 tejbeer 165
	public String getCreatedBy() {
166
		return createdBy;
167
	}
168
 
169
	public void setCreatedBy(String createdBy) {
170
		this.createdBy = createdBy;
171
	}
172
 
173
	public int getAuthId() {
174
		return authId;
175
	}
176
 
177
	public void setAuthId(int authId) {
178
		this.authId = authId;
179
	}
180
 
181
	public int getId() {
182
		return id;
183
	}
184
 
185
	public void setId(int id) {
186
		this.id = id;
187
	}
188
 
189
	public int getFofoId() {
190
		return fofoId;
191
	}
192
 
193
	public void setFofoId(int fofoId) {
194
		this.fofoId = fofoId;
195
	}
196
 
197
	public String getAgenda() {
198
		return agenda;
199
	}
200
 
201
	public void setAgenda(String agenda) {
202
		this.agenda = agenda;
203
	}
204
 
205
	public String getPartnerRemark() {
206
		return partnerRemark;
207
	}
208
 
209
	public void setPartnerRemark(String partnerRemark) {
210
		this.partnerRemark = partnerRemark;
211
	}
212
 
213
	public String getOutsideVisibity() {
214
		return outsideVisibity;
215
	}
216
 
217
	public void setOutsideVisibity(String outsideVisibity) {
218
		this.outsideVisibity = outsideVisibity;
219
	}
220
 
221
	public String getInstoreVisibility() {
222
		return instoreVisibility;
223
	}
224
 
225
	public void setInstoreVisibility(String instoreVisibility) {
226
		this.instoreVisibility = instoreVisibility;
227
	}
228
 
229
	public String getOutsideStock() {
230
		return outsideStock;
231
	}
232
 
233
	public void setOutsideStock(String outsideStock) {
234
		this.outsideStock = outsideStock;
235
	}
236
 
237
	public String getSystemKnowledge() {
238
		return systemKnowledge;
239
	}
240
 
241
	public void setSystemKnowledge(String systemKnowledge) {
242
		this.systemKnowledge = systemKnowledge;
243
	}
244
 
245
	public String getWorkingDevice() {
246
		return workingDevice;
247
	}
248
 
249
	public void setWorkingDevice(String workingDevice) {
250
		this.workingDevice = workingDevice;
251
	}
252
 
253
	public String getWorkingPrinter() {
254
		return workingPrinter;
255
	}
256
 
257
	public void setWorkingPrinter(String workingPrinter) {
258
		this.workingPrinter = workingPrinter;
259
	}
260
 
261
	public String getCarryBags() {
262
		return carryBags;
263
	}
264
 
265
	public void setCarryBags(String carryBags) {
266
		this.carryBags = carryBags;
267
	}
268
 
269
	public String getSmartdukaanTshirt() {
270
		return smartdukaanTshirt;
271
	}
272
 
273
	public void setSmartdukaanTshirt(String smartdukaanTshirt) {
274
		this.smartdukaanTshirt = smartdukaanTshirt;
275
	}
276
 
277
	public String getLatestDummies() {
278
		return latestDummies;
279
	}
280
 
281
	public void setLatestDummies(String latestDummies) {
282
		this.latestDummies = latestDummies;
283
	}
284
 
285
	public String getInvestment() {
286
		return investment;
287
	}
288
 
289
	public void setInvestment(String investment) {
290
		this.investment = investment;
291
	}
292
 
293
	public int getMtd() {
294
		return mtd;
295
	}
296
 
297
	public void setMtd(int mtd) {
298
		this.mtd = mtd;
299
	}
300
 
301
	public String getHygiene() {
302
		return hygiene;
303
	}
304
 
305
	public void setHygiene(String hygiene) {
306
		this.hygiene = hygiene;
307
	}
308
 
309
	public LocalDateTime getCreatedTimestamp() {
310
		return createdTimestamp;
311
	}
312
 
313
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
314
		this.createdTimestamp = createdTimestamp;
315
	}
316
 
317
	public LocalDateTime getUpdatedTimestamp() {
318
		return updatedTimestamp;
319
	}
320
 
321
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
322
		this.updatedTimestamp = updatedTimestamp;
323
	}
324
 
325
	public int getFranchiseActivityId() {
326
		return franchiseActivityId;
327
	}
328
 
329
	public void setFranchiseActivityId(int franchiseActivityId) {
330
		this.franchiseActivityId = franchiseActivityId;
331
	}
332
 
333
	@Override
30487 tejbeer 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
25903 tejbeer 500
	public String toString() {
25906 tejbeer 501
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
25927 amit.gupta 502
				+ ", franchiseeActivity=" + franchiseeActivity + ", schelduleTimestamp=" + schelduleTimestamp
503
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
504
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
505
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
506
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
507
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
30487 tejbeer 508
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", pendingBilling=" + pendingBilling
509
				+ ", informedAboutOnline=" + informedAboutOnline + ", updatedTimestamp=" + updatedTimestamp
510
				+ ", brands=" + brands + ", franchiseActivityId=" + franchiseActivityId + ", createdBy=" + createdBy
511
				+ ", authId=" + authId + "]";
25903 tejbeer 512
	}
513
 
514
}