| 30652 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.enumuration.transaction.SchemePayoutStatus;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.*;
|
|
|
6 |
import java.time.LocalDateTime;
|
|
|
7 |
import java.util.Objects;
|
|
|
8 |
|
|
|
9 |
@Entity(name = "fofo.offer_payout")
|
|
|
10 |
public class OfferPayout {
|
|
|
11 |
@Id
|
|
|
12 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
13 |
private long id;
|
|
|
14 |
@Column(name = "fofo_id", nullable = false)
|
|
|
15 |
private long fofoId;
|
|
|
16 |
@Column(name = "offer_id", nullable = false)
|
|
|
17 |
private long offerId;
|
|
|
18 |
@Column(name = "criteria_id", nullable = false)
|
|
|
19 |
private long criteriaId;
|
|
|
20 |
@Column(name = "slab_amount", nullable = false)
|
|
|
21 |
private double slabAmount;
|
|
|
22 |
@Column(name = "serial_number", nullable = false)
|
|
|
23 |
private String serialNumber;
|
|
|
24 |
@Column(name = "amount", nullable = false)
|
|
|
25 |
private double amount;
|
|
|
26 |
@Column(name = "status", nullable = false)
|
|
|
27 |
@Enumerated(EnumType.STRING)
|
|
|
28 |
private SchemePayoutStatus status;
|
|
|
29 |
@Column(name = "description", nullable = false)
|
|
|
30 |
private String description;
|
|
|
31 |
@Column(name = "create_timestamp", nullable = false)
|
|
|
32 |
private LocalDateTime createTimestamp;
|
|
|
33 |
|
|
|
34 |
public OfferPayout(long fofoId, long offerId, long criteriaId, double slabAmount, String serialNumber, double amount, SchemePayoutStatus status, String description, LocalDateTime createTimestamp) {
|
|
|
35 |
this.fofoId = fofoId;
|
|
|
36 |
this.offerId = offerId;
|
|
|
37 |
this.criteriaId = criteriaId;
|
|
|
38 |
this.slabAmount = slabAmount;
|
|
|
39 |
this.serialNumber = serialNumber;
|
|
|
40 |
this.amount = amount;
|
|
|
41 |
this.status = status;
|
|
|
42 |
this.description = description;
|
|
|
43 |
this.createTimestamp = createTimestamp;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
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
|
|
|
59 |
public boolean equals(Object o) {
|
|
|
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);
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
@Override
|
|
|
67 |
public String toString() {
|
|
|
68 |
return "OfferPayout{" +
|
|
|
69 |
"id=" + id +
|
|
|
70 |
", fofoId=" + fofoId +
|
|
|
71 |
", offerId=" + offerId +
|
|
|
72 |
", criteriaId=" + criteriaId +
|
|
|
73 |
", slabAmount=" + slabAmount +
|
|
|
74 |
", serialNumber='" + serialNumber + '\'' +
|
|
|
75 |
", amount=" + amount +
|
|
|
76 |
", status=" + status +
|
|
|
77 |
", description='" + description + '\'' +
|
|
|
78 |
", createTimestamp=" + createTimestamp +
|
|
|
79 |
'}';
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
@Override
|
|
|
83 |
public int hashCode() {
|
|
|
84 |
return Objects.hash(id, fofoId, offerId, criteriaId, slabAmount, serialNumber, amount, status, description, createTimestamp);
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
public long getId() {
|
|
|
88 |
return id;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
public void setId(long id) {
|
|
|
92 |
this.id = id;
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
public long getFofoId() {
|
|
|
96 |
return fofoId;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public void setFofoId(long fofoId) {
|
|
|
100 |
this.fofoId = fofoId;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
public long getOfferId() {
|
|
|
104 |
return offerId;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public void setOfferId(long offerId) {
|
|
|
108 |
this.offerId = offerId;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public long getCriteriaId() {
|
|
|
112 |
return criteriaId;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public void setCriteriaId(long criteriaId) {
|
|
|
116 |
this.criteriaId = criteriaId;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public double getSlabAmount() {
|
|
|
120 |
return slabAmount;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public void setSlabAmount(double slabAmount) {
|
|
|
124 |
this.slabAmount = slabAmount;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
public String getSerialNumber() {
|
|
|
128 |
return serialNumber;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
public void setSerialNumber(String serialNumber) {
|
|
|
132 |
this.serialNumber = serialNumber;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
public double getAmount() {
|
|
|
136 |
return amount;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
public void setAmount(double amount) {
|
|
|
140 |
this.amount = amount;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
public SchemePayoutStatus getStatus() {
|
|
|
144 |
return status;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
public void setStatus(SchemePayoutStatus status) {
|
|
|
148 |
this.status = status;
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
public String getDescription() {
|
|
|
152 |
return description;
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
public void setDescription(String description) {
|
|
|
156 |
this.description = description;
|
|
|
157 |
}
|
|
|
158 |
}
|