| Line 91... |
Line 91... |
| 91 |
|
91 |
|
| 92 |
@Column(name = "created_by")
|
92 |
@Column(name = "created_by")
|
| 93 |
private int createdBy;
|
93 |
private int createdBy;
|
| 94 |
|
94 |
|
| 95 |
@Column
|
95 |
@Column
|
| 96 |
private boolean cashBack;
|
96 |
private boolean cashback;
|
| 97 |
|
97 |
|
| 98 |
@Transient
|
98 |
@Transient
|
| 99 |
private Set<Integer> retailerIds = new HashSet<>();
|
99 |
private Set<Integer> retailerIds = new HashSet<>();
|
| 100 |
|
100 |
|
| 101 |
@Column(name="partner_type")
|
101 |
@Column(name="partner_type")
|
| Line 127... |
Line 127... |
| 127 |
|
127 |
|
| 128 |
public void setDescription(String description) {
|
128 |
public void setDescription(String description) {
|
| 129 |
this.description = description;
|
129 |
this.description = description;
|
| 130 |
}
|
130 |
}
|
| 131 |
|
131 |
|
| 132 |
public boolean isCashBack() {
|
132 |
public boolean isCashback() {
|
| 133 |
return cashBack;
|
133 |
return cashback;
|
| 134 |
}
|
134 |
}
|
| 135 |
|
135 |
|
| 136 |
public void setCashBack(boolean cashBack) {
|
136 |
public void setCashback(boolean cashback) {
|
| 137 |
this.cashBack = cashBack;
|
137 |
this.cashback = cashback;
|
| 138 |
}
|
138 |
}
|
| 139 |
|
139 |
|
| 140 |
public SchemeType getType() {
|
140 |
public SchemeType getType() {
|
| 141 |
return type;
|
141 |
return type;
|
| 142 |
}
|
142 |
}
|
| Line 149... |
Line 149... |
| 149 |
public String toString() {
|
149 |
public String toString() {
|
| 150 |
return "Scheme [id=" + id + ", name=" + name + ", description=" + description + ", type=" + type
|
150 |
return "Scheme [id=" + id + ", name=" + name + ", description=" + description + ", type=" + type
|
| 151 |
+ ", amountType=" + amountType + ", amount=" + amount + ", startDateTime=" + startDateTime
|
151 |
+ ", amountType=" + amountType + ", amount=" + amount + ", startDateTime=" + startDateTime
|
| 152 |
+ ", endDateTime=" + endDateTime + ", createTimestamp=" + createTimestamp + ", activeTimestamp="
|
152 |
+ ", endDateTime=" + endDateTime + ", createTimestamp=" + createTimestamp + ", activeTimestamp="
|
| 153 |
+ activeTimestamp + ", expireTimestamp=" + expireTimestamp + ", createdBy=" + createdBy + ", cashBack="
|
153 |
+ activeTimestamp + ", expireTimestamp=" + expireTimestamp + ", createdBy=" + createdBy + ", cashBack="
|
| 154 |
+ cashBack + ", retailerIds=" + retailerIds + ", partnerType=" + partnerType + ", itemStringMap="
|
154 |
+ cashback + ", retailerIds=" + retailerIds + ", partnerType=" + partnerType + ", itemStringMap="
|
| 155 |
+ itemStringMap + "]";
|
155 |
+ itemStringMap + "]";
|
| 156 |
}
|
156 |
}
|
| 157 |
|
157 |
|
| 158 |
public AmountType getAmountType() {
|
158 |
public AmountType getAmountType() {
|
| 159 |
return amountType;
|
159 |
return amountType;
|
| Line 297... |
Line 297... |
| 297 |
final int prime = 31;
|
297 |
final int prime = 31;
|
| 298 |
int result = 1;
|
298 |
int result = 1;
|
| 299 |
result = prime * result + ((activeTimestamp == null) ? 0 : activeTimestamp.hashCode());
|
299 |
result = prime * result + ((activeTimestamp == null) ? 0 : activeTimestamp.hashCode());
|
| 300 |
result = prime * result + Float.floatToIntBits(amount);
|
300 |
result = prime * result + Float.floatToIntBits(amount);
|
| 301 |
result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());
|
301 |
result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());
|
| 302 |
result = prime * result + (cashBack ? 1231 : 1237);
|
302 |
result = prime * result + (cashback ? 1231 : 1237);
|
| 303 |
result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
|
303 |
result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
|
| 304 |
result = prime * result + createdBy;
|
304 |
result = prime * result + createdBy;
|
| 305 |
result = prime * result + ((description == null) ? 0 : description.hashCode());
|
305 |
result = prime * result + ((description == null) ? 0 : description.hashCode());
|
| 306 |
result = prime * result + ((endDateTime == null) ? 0 : endDateTime.hashCode());
|
306 |
result = prime * result + ((endDateTime == null) ? 0 : endDateTime.hashCode());
|
| 307 |
result = prime * result + ((expireTimestamp == null) ? 0 : expireTimestamp.hashCode());
|
307 |
result = prime * result + ((expireTimestamp == null) ? 0 : expireTimestamp.hashCode());
|
| Line 331... |
Line 331... |
| 331 |
return false;
|
331 |
return false;
|
| 332 |
if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
|
332 |
if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
|
| 333 |
return false;
|
333 |
return false;
|
| 334 |
if (amountType != other.amountType)
|
334 |
if (amountType != other.amountType)
|
| 335 |
return false;
|
335 |
return false;
|
| 336 |
if (cashBack != other.cashBack)
|
336 |
if (cashback != other.cashback)
|
| 337 |
return false;
|
337 |
return false;
|
| 338 |
if (createTimestamp == null) {
|
338 |
if (createTimestamp == null) {
|
| 339 |
if (other.createTimestamp != null)
|
339 |
if (other.createTimestamp != null)
|
| 340 |
return false;
|
340 |
return false;
|
| 341 |
} else if (!createTimestamp.equals(other.createTimestamp))
|
341 |
} else if (!createTimestamp.equals(other.createTimestamp))
|