Subversion Repositories SmartDukaan

Rev

Rev 25952 | Rev 30487 | 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
 
25927 amit.gupta 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
 
25903 tejbeer 199
	public void setPartnerName(String partnerName) {
200
		this.partnerName = partnerName;
201
	}
202
 
25906 tejbeer 203
	@Column(name = "schedule_timestamp")
204
	private LocalDateTime schelduleTimestamp;
205
 
206
	public LocalDateTime getSchelduleTimestamp() {
207
		return schelduleTimestamp;
208
	}
209
 
210
	public void setSchelduleTimestamp(LocalDateTime schelduleTimestamp) {
211
		this.schelduleTimestamp = schelduleTimestamp;
212
	}
213
 
25903 tejbeer 214
	@Column(name = "agenda")
215
	private String agenda;
216
 
217
	@Column(name = "partner_remark")
218
	private String partnerRemark;
219
 
220
	@Column(name = "outside_visibity")
221
	private String outsideVisibity;
222
 
223
	@Column(name = "instore_visibility")
224
	private String instoreVisibility;
225
 
226
	@Column(name = "outside_stock")
227
	private String outsideStock;
228
 
229
	@Column(name = "system_knowledge")
230
	private String systemKnowledge;
231
 
232
	@Column(name = "working_device")
233
	private String workingDevice;
234
 
235
	@Column(name = "working_printer")
236
	private String workingPrinter;
237
 
238
	@Column(name = "carry_bags")
239
	private String carryBags;
240
 
241
	@Column(name = "smartdukaan_tshirt")
242
	private String smartdukaanTshirt;
243
 
244
	@Column(name = "latest_dummies")
245
	private String latestDummies;
246
 
247
	@Column(name = "investment")
248
	private String investment;
249
 
250
	@Column(name = "mtd")
251
	private int mtd;
252
 
253
	@Column(name = "status")
254
	@Enumerated(EnumType.STRING)
255
	private FranchiseeVisitStatus status;
256
 
257
	@Column(name = "hygiene")
258
	private String hygiene;
259
 
260
	@Column(name = "created_timestamp")
261
	private LocalDateTime createdTimestamp;
262
 
263
	@Column(name = "updated_timestamp")
264
	private LocalDateTime updatedTimestamp;
265
 
30485 tejbeer 266
	@Transient
267
	private List<String> brands;
268
 
269
	public List<String> getBrands() {
270
		return brands;
271
	}
272
 
273
	public void setBrands(List<String> brands) {
274
		this.brands = brands;
275
	}
276
 
25903 tejbeer 277
	public FranchiseeVisitStatus getStatus() {
278
		return status;
279
	}
280
 
281
	public void setStatus(FranchiseeVisitStatus status) {
282
		this.status = status;
283
	}
284
 
285
	@Column(name = "franchise_activity_id")
286
	private int franchiseActivityId;
287
 
288
	@Column(name = "created_by")
289
	private String createdBy;
290
 
291
	@Column(name = "auth_id")
292
	private int authId;
293
 
294
	public String getCreatedBy() {
295
		return createdBy;
296
	}
297
 
298
	public void setCreatedBy(String createdBy) {
299
		this.createdBy = createdBy;
300
	}
301
 
302
	public int getAuthId() {
303
		return authId;
304
	}
305
 
306
	public void setAuthId(int authId) {
307
		this.authId = authId;
308
	}
309
 
310
	public int getId() {
311
		return id;
312
	}
313
 
314
	public void setId(int id) {
315
		this.id = id;
316
	}
317
 
318
	public int getFofoId() {
319
		return fofoId;
320
	}
321
 
322
	public void setFofoId(int fofoId) {
323
		this.fofoId = fofoId;
324
	}
325
 
326
	public String getAgenda() {
327
		return agenda;
328
	}
329
 
330
	public void setAgenda(String agenda) {
331
		this.agenda = agenda;
332
	}
333
 
334
	public String getPartnerRemark() {
335
		return partnerRemark;
336
	}
337
 
338
	public void setPartnerRemark(String partnerRemark) {
339
		this.partnerRemark = partnerRemark;
340
	}
341
 
342
	public String getOutsideVisibity() {
343
		return outsideVisibity;
344
	}
345
 
346
	public void setOutsideVisibity(String outsideVisibity) {
347
		this.outsideVisibity = outsideVisibity;
348
	}
349
 
350
	public String getInstoreVisibility() {
351
		return instoreVisibility;
352
	}
353
 
354
	public void setInstoreVisibility(String instoreVisibility) {
355
		this.instoreVisibility = instoreVisibility;
356
	}
357
 
358
	public String getOutsideStock() {
359
		return outsideStock;
360
	}
361
 
362
	public void setOutsideStock(String outsideStock) {
363
		this.outsideStock = outsideStock;
364
	}
365
 
366
	public String getSystemKnowledge() {
367
		return systemKnowledge;
368
	}
369
 
370
	public void setSystemKnowledge(String systemKnowledge) {
371
		this.systemKnowledge = systemKnowledge;
372
	}
373
 
374
	public String getWorkingDevice() {
375
		return workingDevice;
376
	}
377
 
378
	public void setWorkingDevice(String workingDevice) {
379
		this.workingDevice = workingDevice;
380
	}
381
 
382
	public String getWorkingPrinter() {
383
		return workingPrinter;
384
	}
385
 
386
	public void setWorkingPrinter(String workingPrinter) {
387
		this.workingPrinter = workingPrinter;
388
	}
389
 
390
	public String getCarryBags() {
391
		return carryBags;
392
	}
393
 
394
	public void setCarryBags(String carryBags) {
395
		this.carryBags = carryBags;
396
	}
397
 
398
	public String getSmartdukaanTshirt() {
399
		return smartdukaanTshirt;
400
	}
401
 
402
	public void setSmartdukaanTshirt(String smartdukaanTshirt) {
403
		this.smartdukaanTshirt = smartdukaanTshirt;
404
	}
405
 
406
	public String getLatestDummies() {
407
		return latestDummies;
408
	}
409
 
410
	public void setLatestDummies(String latestDummies) {
411
		this.latestDummies = latestDummies;
412
	}
413
 
414
	public String getInvestment() {
415
		return investment;
416
	}
417
 
418
	public void setInvestment(String investment) {
419
		this.investment = investment;
420
	}
421
 
422
	public int getMtd() {
423
		return mtd;
424
	}
425
 
426
	public void setMtd(int mtd) {
427
		this.mtd = mtd;
428
	}
429
 
430
	public String getHygiene() {
431
		return hygiene;
432
	}
433
 
434
	public void setHygiene(String hygiene) {
435
		this.hygiene = hygiene;
436
	}
437
 
438
	public LocalDateTime getCreatedTimestamp() {
439
		return createdTimestamp;
440
	}
441
 
442
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
443
		this.createdTimestamp = createdTimestamp;
444
	}
445
 
446
	public LocalDateTime getUpdatedTimestamp() {
447
		return updatedTimestamp;
448
	}
449
 
450
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
451
		this.updatedTimestamp = updatedTimestamp;
452
	}
453
 
454
	public int getFranchiseActivityId() {
455
		return franchiseActivityId;
456
	}
457
 
458
	public void setFranchiseActivityId(int franchiseActivityId) {
459
		this.franchiseActivityId = franchiseActivityId;
460
	}
461
 
462
	@Override
463
	public String toString() {
25906 tejbeer 464
		return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
25927 amit.gupta 465
				+ ", franchiseeActivity=" + franchiseeActivity + ", schelduleTimestamp=" + schelduleTimestamp
466
				+ ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
467
				+ ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
468
				+ systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
469
				+ ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
470
				+ latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
471
				+ hygiene + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp
472
				+ ", franchiseActivityId=" + franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId
473
				+ "]";
25903 tejbeer 474
	}
475
 
476
}