Subversion Repositories SmartDukaan

Rev

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