Subversion Repositories SmartDukaan

Rev

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

Rev 30652 Rev 30996
Line 28... Line 28...
28
	private SchemePayoutStatus status;
28
	private SchemePayoutStatus status;
29
	@Column(name = "description", nullable = false)
29
	@Column(name = "description", nullable = false)
30
	private String description;
30
	private String description;
31
	@Column(name = "create_timestamp", nullable = false)
31
	@Column(name = "create_timestamp", nullable = false)
32
	private LocalDateTime createTimestamp;
32
	private LocalDateTime createTimestamp;
-
 
33
	@Column(name = "reject_timestamp")
-
 
34
	private LocalDateTime rejectTimestamp;
-
 
35
 
-
 
36
	public OfferPayout() {
-
 
37
 
-
 
38
	}
-
 
39
 
-
 
40
	@Override
-
 
41
	public boolean equals(Object o) {
-
 
42
		if (this == o) return true;
-
 
43
		if (o == null || getClass() != o.getClass()) return false;
-
 
44
		OfferPayout that = (OfferPayout) o;
-
 
45
		return id == that.id && fofoId == that.fofoId && offerId == that.offerId && criteriaId == that.criteriaId && Double.compare(that.slabAmount, slabAmount) == 0 && Double.compare(that.amount, amount) == 0 && Objects.equals(serialNumber, that.serialNumber) && status == that.status && Objects.equals(description, that.description) && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(rejectTimestamp, that.rejectTimestamp);
-
 
46
	}
33
 
47
 
34
	public OfferPayout(long fofoId, long offerId, long criteriaId, double slabAmount, String serialNumber, double amount, SchemePayoutStatus status, String description, LocalDateTime createTimestamp) {
48
	public OfferPayout(long fofoId, long offerId, long criteriaId, double slabAmount, String serialNumber, double amount, SchemePayoutStatus status, String description, LocalDateTime createTimestamp) {
35
		this.fofoId = fofoId;
49
		this.fofoId = fofoId;
36
		this.offerId = offerId;
50
		this.offerId = offerId;
37
		this.criteriaId = criteriaId;
51
		this.criteriaId = criteriaId;
Line 41... Line 55...
41
		this.status = status;
55
		this.status = status;
42
		this.description = description;
56
		this.description = description;
43
		this.createTimestamp = createTimestamp;
57
		this.createTimestamp = createTimestamp;
44
	}
58
	}
45
 
59
 
46
	public OfferPayout() {
-
 
47
 
-
 
48
	}
-
 
49
 
-
 
50
	public LocalDateTime getCreateTimestamp() {
-
 
51
		return createTimestamp;
-
 
52
	}
-
 
53
 
-
 
54
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
-
 
55
		this.createTimestamp = createTimestamp;
-
 
56
	}
-
 
57
 
-
 
58
	@Override
60
	@Override
59
	public boolean equals(Object o) {
61
	public int hashCode() {
60
		if (this == o) return true;
-
 
61
		if (o == null || getClass() != o.getClass()) return false;
-
 
62
		OfferPayout that = (OfferPayout) o;
-
 
63
		return id == that.id && fofoId == that.fofoId && offerId == that.offerId && criteriaId == that.criteriaId && Double.compare(that.slabAmount, slabAmount) == 0 && Double.compare(that.amount, amount) == 0 && Objects.equals(serialNumber, that.serialNumber) && status == that.status && Objects.equals(description, that.description) && Objects.equals(createTimestamp, that.createTimestamp);
62
		return Objects.hash(id, fofoId, offerId, criteriaId, slabAmount, serialNumber, amount, status, description, createTimestamp, rejectTimestamp);
64
	}
63
	}
65
 
64
 
66
	@Override
65
	@Override
67
	public String toString() {
66
	public String toString() {
68
		return "OfferPayout{" +
67
		return "OfferPayout{" +
Line 74... Line 73...
74
				", serialNumber='" + serialNumber + '\'' +
73
				", serialNumber='" + serialNumber + '\'' +
75
				", amount=" + amount +
74
				", amount=" + amount +
76
				", status=" + status +
75
				", status=" + status +
77
				", description='" + description + '\'' +
76
				", description='" + description + '\'' +
78
				", createTimestamp=" + createTimestamp +
77
				", createTimestamp=" + createTimestamp +
-
 
78
				", rejectTimestamp=" + rejectTimestamp +
79
				'}';
79
				'}';
80
	}
80
	}
81
 
81
 
-
 
82
	public LocalDateTime getCreateTimestamp() {
82
	@Override
83
		return createTimestamp;
-
 
84
	}
-
 
85
 
-
 
86
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
-
 
87
		this.createTimestamp = createTimestamp;
-
 
88
	}
-
 
89
 
83
	public int hashCode() {
90
	public LocalDateTime getRejectTimestamp() {
-
 
91
		return rejectTimestamp;
-
 
92
	}
-
 
93
 
84
		return Objects.hash(id, fofoId, offerId, criteriaId, slabAmount, serialNumber, amount, status, description, createTimestamp);
94
	public void setRejectTimestamp(LocalDateTime rejectTimestamp) {
-
 
95
		this.rejectTimestamp = rejectTimestamp;
85
	}
96
	}
86
 
97
 
87
	public long getId() {
98
	public long getId() {
88
		return id;
99
		return id;
89
	}
100
	}