Subversion Repositories SmartDukaan

Rev

Rev 28801 | Rev 28900 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28801 Rev 28854
Line 18... Line 18...
18
	private int brandServiceId;
18
	private int brandServiceId;
19
	private int serviceId;
19
	private int serviceId;
20
	private String brand;
20
	private String brand;
21
	private String name;
21
	private String name;
22
	private String code;
22
	private String code;
-
 
23
	private ApplicableServiceType serviceApplicableType;
23
	private String fofoCode;
24
	private String fofoCode;
24
	private LocalDateTime createTimestamp;
25
	private LocalDateTime createTimestamp;
25
	private LocalDateTime deploymentDate;
26
	private LocalDateTime deploymentDate;
26
	private LocalDateTime payDate;
27
	private LocalDateTime payDate;
27
 
28
 
Line 331... Line 332...
331
 
332
 
332
		
333
		
333
		return true;
334
		return true;
334
	}
335
	}
335
 
336
 
336
	@Override
-
 
337
	public String toString() {
-
 
338
		return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
-
 
339
				+ ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
-
 
340
				+ ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + ", code=" + code + ", fofoCode="
-
 
341
				+ fofoCode + ", createTimestamp=" + createTimestamp + ", deploymentDate=" + deploymentDate
-
 
342
				+ ", payDate=" + payDate + "]";
-
 
343
	}
-
 
344
 
-
 
345
	public int getFofoId() {
337
	public int getFofoId() {
346
		return fofoId;
338
		return fofoId;
347
	}
339
	}
348
 
340
 
349
	public void setFofoId(int fofoId) {
341
	public void setFofoId(int fofoId) {
Line 412... Line 404...
412
 
404
 
413
	public void setCode(String code) {
405
	public void setCode(String code) {
414
		this.code = code;
406
		this.code = code;
415
	}
407
	}
416
 
408
 
-
 
409
	public ApplicableServiceType getServiceApplicableType() {
-
 
410
		return serviceApplicableType;
-
 
411
	}
-
 
412
 
-
 
413
	public void setServiceApplicableType(ApplicableServiceType serviceApplicableType) {
-
 
414
		this.serviceApplicableType = serviceApplicableType;
-
 
415
	}
-
 
416
 
417
	public String getFofoCode() {
417
	public String getFofoCode() {
418
		return fofoCode;
418
		return fofoCode;
419
	}
419
	}
420
 
420
 
421
	public void setFofoCode(String fofoCode) {
421
	public void setFofoCode(String fofoCode) {
Line 444... Line 444...
444
 
444
 
445
	public void setPayDate(LocalDateTime payDate) {
445
	public void setPayDate(LocalDateTime payDate) {
446
		this.payDate = payDate;
446
		this.payDate = payDate;
447
	}
447
	}
448
 
448
 
449
	@Override
-
 
450
	public int hashCode() {
449
	public static Logger getLogger() {
451
		final int prime = 31;
-
 
452
		int result = 1;
-
 
453
		result = prime * result + (active ? 1231 : 1237);
-
 
454
		result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
-
 
455
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
-
 
456
		result = prime * result + brandServiceId;
-
 
457
		result = prime * result + ((code == null) ? 0 : code.hashCode());
-
 
458
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
459
		result = prime * result + ((fofoCode == null) ? 0 : fofoCode.hashCode());
-
 
460
		result = prime * result + fofoId;
-
 
461
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
462
		result = prime * result + ((partnerStatusType == null) ? 0 : partnerStatusType.hashCode());
-
 
463
		result = prime * result + serviceId;
-
 
464
		return result;
450
		return LOGGER;
465
	}
451
	}
466
 
452
 
467
	@Override
453
	@Override
468
	public boolean equals(Object obj) {
454
	public String toString() {
469
		if (this == obj)
-
 
470
			return true;
-
 
471
		if (obj == null)
-
 
472
			return false;
-
 
473
		if (getClass() != obj.getClass())
-
 
474
			return false;
-
 
475
		FinanceServicesModel other = (FinanceServicesModel) obj;
455
		return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
476
		if (active != other.active)
-
 
477
			return false;
-
 
478
		if (applicableType != other.applicableType)
456
				+ ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
479
			return false;
-
 
480
		if (brand == null) {
-
 
481
			if (other.brand != null)
-
 
482
				return false;
-
 
483
		} else if (!brand.equals(other.brand))
-
 
484
			return false;
-
 
485
		if (brandServiceId != other.brandServiceId)
457
				+ ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + ", code=" + code
486
			return false;
-
 
487
		if (code == null) {
-
 
488
			if (other.code != null)
-
 
489
				return false;
-
 
490
		} else if (!code.equals(other.code))
-
 
491
			return false;
-
 
492
		if (createTimestamp == null) {
-
 
493
			if (other.createTimestamp != null)
-
 
494
				return false;
-
 
495
		} else if (!createTimestamp.equals(other.createTimestamp))
458
				+ ", serviceApplicableType=" + serviceApplicableType + ", fofoCode=" + fofoCode + ", createTimestamp="
496
			return false;
-
 
497
		if (fofoCode == null) {
-
 
498
			if (other.fofoCode != null)
-
 
499
				return false;
-
 
500
		} else if (!fofoCode.equals(other.fofoCode))
-
 
501
			return false;
-
 
502
		if (fofoId != other.fofoId)
-
 
503
			return false;
-
 
504
		if (name == null) {
-
 
505
			if (other.name != null)
-
 
506
				return false;
-
 
507
		} else if (!name.equals(other.name))
-
 
508
			return false;
-
 
509
		if (partnerStatusType != other.partnerStatusType)
459
				+ createTimestamp + ", deploymentDate=" + deploymentDate + ", payDate=" + payDate + "]";
510
			return false;
-
 
511
		if (serviceId != other.serviceId)
-
 
512
			return false;
-
 
513
		return true;
-
 
514
	}
460
	}
515
 
461
 
516
	public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
462
	public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
517
			boolean active, int brandServiceId, int serviceId, String brand, String name, String code, String fofoCode,
463
			boolean active, int brandServiceId, int serviceId, String brand, String name, String code,
518
			LocalDateTime createTimestamp) {
464
			ApplicableServiceType serviceApplicableType, String fofoCode, LocalDateTime createTimestamp) {
519
		super();
465
		super();
520
		this.fofoId = fofoId;
466
		this.fofoId = fofoId;
521
		this.partnerStatusType = partnerStatusType;
467
		this.partnerStatusType = partnerStatusType;
522
		this.applicableType = applicableType;
468
		this.applicableType = applicableType;
523
		this.active = active;
469
		this.active = active;
524
		this.brandServiceId = brandServiceId;
470
		this.brandServiceId = brandServiceId;
525
		this.serviceId = serviceId;
471
		this.serviceId = serviceId;
526
		this.brand = brand;
472
		this.brand = brand;
527
		this.name = name;
473
		this.name = name;
528
		this.code = code;
474
		this.code = code;
-
 
475
		this.serviceApplicableType = serviceApplicableType;
529
		this.fofoCode = fofoCode;
476
		this.fofoCode = fofoCode;
530
		this.createTimestamp = createTimestamp;
477
		this.createTimestamp = createTimestamp;
531
	}
478
	}
532
 
479
 
533
}
-
 
534
480
	
-
 
481
	
-
 
482
	
-
 
483
	
-
 
484
	
-
 
485
	
-
 
486
	}
-
 
487
535
488