| Line 7... |
Line 7... |
| 7 |
|
7 |
|
| 8 |
import javax.persistence.*;
|
8 |
import javax.persistence.*;
|
| 9 |
import java.io.Serializable;
|
9 |
import java.io.Serializable;
|
| 10 |
import java.time.LocalDate;
|
10 |
import java.time.LocalDate;
|
| 11 |
import java.time.LocalDateTime;
|
11 |
import java.time.LocalDateTime;
|
| - |
|
12 |
import java.util.Objects;
|
| 12 |
|
13 |
|
| 13 |
/**
|
14 |
/**
|
| 14 |
* This class basically contains store code details
|
15 |
* This class basically contains store code details
|
| 15 |
*
|
16 |
*
|
| 16 |
* @author ashikali
|
17 |
* @author ashikali
|
| Line 166... |
Line 167... |
| 166 |
private int target;
|
167 |
private int target;
|
| 167 |
@Column(name = "grace_count")
|
168 |
@Column(name = "grace_count")
|
| 168 |
private int graceCount;
|
169 |
private int graceCount;
|
| 169 |
@Column(name = "astId")
|
170 |
@Column(name = "astId")
|
| 170 |
private int astId;
|
171 |
private int astId;
|
| - |
|
172 |
@Column(name = "shopify_location_id")
|
| - |
|
173 |
private String shopifyLocationId;
|
| - |
|
174 |
@Column(name = "shopify_customer_id")
|
| - |
|
175 |
private String shopifyCustomerId;
|
| - |
|
176 |
@Column(name = "gst_number")
|
| - |
|
177 |
private String gstNumber;
|
| 171 |
|
178 |
|
| 172 |
public FofoStore() {
|
179 |
public FofoStore() {
|
| 173 |
}
|
180 |
}
|
| 174 |
|
181 |
|
| 175 |
public int getAstId() {
|
182 |
public int getAstId() {
|
| Line 350... |
Line 357... |
| 350 |
|
357 |
|
| 351 |
public void setFofoType(FofoType fofoType) {
|
358 |
public void setFofoType(FofoType fofoType) {
|
| 352 |
this.fofoType = fofoType;
|
359 |
this.fofoType = fofoType;
|
| 353 |
}
|
360 |
}
|
| 354 |
|
361 |
|
| - |
|
362 |
public String getShopifyLocationId() {
|
| - |
|
363 |
return shopifyLocationId;
|
| - |
|
364 |
}
|
| - |
|
365 |
|
| - |
|
366 |
public void setShopifyLocationId(String shopifyLocationId) {
|
| - |
|
367 |
this.shopifyLocationId = shopifyLocationId;
|
| - |
|
368 |
}
|
| - |
|
369 |
|
| - |
|
370 |
public String getShopifyCustomerId() {
|
| - |
|
371 |
return shopifyCustomerId;
|
| - |
|
372 |
}
|
| - |
|
373 |
|
| - |
|
374 |
public void setShopifyCustomerId(String shopifyCustomerId) {
|
| - |
|
375 |
this.shopifyCustomerId = shopifyCustomerId;
|
| - |
|
376 |
}
|
| - |
|
377 |
|
| - |
|
378 |
public String getGstNumber() {
|
| - |
|
379 |
return gstNumber;
|
| - |
|
380 |
}
|
| - |
|
381 |
|
| - |
|
382 |
public void setGstNumber(String gstNumber) {
|
| - |
|
383 |
this.gstNumber = gstNumber;
|
| - |
|
384 |
}
|
| - |
|
385 |
|
| 355 |
@Override
|
386 |
@Override
|
| 356 |
public int hashCode() {
|
387 |
public boolean equals(Object o) {
|
| 357 |
final int prime = 31;
|
- |
|
| 358 |
int result = 1;
|
- |
|
| 359 |
result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
|
- |
|
| 360 |
result = prime * result + (active ? 1231 : 1237);
|
388 |
if (!(o instanceof FofoStore)) return false;
|
| 361 |
result = prime * result + ((activeTimeStamp == null) ? 0 : activeTimeStamp.hashCode());
|
- |
|
| 362 |
result = prime * result + ((bagsLastCredited == null) ? 0 : bagsLastCredited.hashCode());
|
- |
|
| 363 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
- |
|
| 364 |
result = prime * result + Float.floatToIntBits(counterPotential);
|
- |
|
| 365 |
result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
|
- |
|
| 366 |
result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
|
- |
|
| 367 |
result = prime * result + graceCount;
|
- |
|
| 368 |
result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
|
- |
|
| 369 |
result = prime * result + id;
|
- |
|
| 370 |
result = prime * result + (internal ? 1231 : 1237);
|
- |
|
| 371 |
result = prime * result + (investmentOk ? 1231 : 1237);
|
- |
|
| 372 |
result = prime * result + ((latitude == null) ? 0 : latitude.hashCode());
|
- |
|
| 373 |
result = prime * result + ((longitude == null) ? 0 : longitude.hashCode());
|
- |
|
| 374 |
result = prime * result + Float.floatToIntBits(minimumInvestment);
|
- |
|
| 375 |
result = prime * result + ((pan == null) ? 0 : pan.hashCode());
|
- |
|
| 376 |
result = prime * result + ((userAddress == null) ? 0 : userAddress.hashCode());
|
- |
|
| 377 |
result = prime * result + warehouseId;
|
389 |
FofoStore fofoStore = (FofoStore) o;
|
| 378 |
return result;
|
390 |
return id == fofoStore.id && codeInt == fofoStore.codeInt && Float.compare(counterPotential, fofoStore.counterPotential) == 0 && warehouseId == fofoStore.warehouseId && Float.compare(minimumInvestment, fofoStore.minimumInvestment) == 0 && investmentOk == fofoStore.investmentOk && active == fofoStore.active && internal == fofoStore.internal && target == fofoStore.target && graceCount == fofoStore.graceCount && astId == fofoStore.astId && Objects.equals(code, fofoStore.code) && Objects.equals(latitude, fofoStore.latitude) && Objects.equals(longitude, fofoStore.longitude) && counterSize == fofoStore.counterSize && Objects.equals(graceDate, fofoStore.graceDate) && Objects.equals(pan, fofoStore.pan) && Objects.equals(userAddress, fofoStore.userAddress) && Objects.equals(bagsLastCredited, fofoStore.bagsLastCredited) && fofoType == fofoStore.fofoType && activationType == fofoStore.activationType && Objects.equals(activeTimeStamp, fofoStore.activeTimeStamp) && Objects.equals(shopifyLocationId, fofoStore.shopifyLocationId) && Objects.equals(shopifyCustomerId, fofoStore.shopifyCustomerId) && Objects.equals(gstNumber, fofoStore.gstNumber);
|
| 379 |
}
|
391 |
}
|
| 380 |
|
392 |
|
| 381 |
@Override
|
393 |
@Override
|
| 382 |
public boolean equals(Object obj) {
|
394 |
public int hashCode() {
|
| 383 |
if (this == obj)
|
- |
|
| 384 |
return true;
|
- |
|
| 385 |
if (obj == null)
|
- |
|
| 386 |
return false;
|
- |
|
| 387 |
if (getClass() != obj.getClass())
|
- |
|
| 388 |
return false;
|
- |
|
| 389 |
FofoStore other = (FofoStore) obj;
|
- |
|
| 390 |
if (activationType != other.activationType)
|
- |
|
| 391 |
return false;
|
- |
|
| 392 |
if (active != other.active)
|
- |
|
| 393 |
return false;
|
- |
|
| 394 |
if (activeTimeStamp == null) {
|
- |
|
| 395 |
if (other.activeTimeStamp != null)
|
- |
|
| 396 |
return false;
|
- |
|
| 397 |
} else if (!activeTimeStamp.equals(other.activeTimeStamp))
|
- |
|
| 398 |
return false;
|
- |
|
| 399 |
if (bagsLastCredited == null) {
|
- |
|
| 400 |
if (other.bagsLastCredited != null)
|
- |
|
| 401 |
return false;
|
- |
|
| 402 |
} else if (!bagsLastCredited.equals(other.bagsLastCredited))
|
- |
|
| 403 |
return false;
|
- |
|
| 404 |
if (code == null) {
|
- |
|
| 405 |
if (other.code != null)
|
- |
|
| 406 |
return false;
|
- |
|
| 407 |
} else if (!code.equals(other.code))
|
- |
|
| 408 |
return false;
|
- |
|
| 409 |
if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential))
|
- |
|
| 410 |
return false;
|
- |
|
| 411 |
if (counterSize != other.counterSize)
|
- |
|
| 412 |
return false;
|
- |
|
| 413 |
if (fofoType != other.fofoType)
|
- |
|
| 414 |
return false;
|
- |
|
| 415 |
if (graceCount != other.graceCount)
|
- |
|
| 416 |
return false;
|
- |
|
| 417 |
if (graceDate == null) {
|
- |
|
| 418 |
if (other.graceDate != null)
|
- |
|
| 419 |
return false;
|
- |
|
| 420 |
} else if (!graceDate.equals(other.graceDate))
|
- |
|
| 421 |
return false;
|
- |
|
| 422 |
if (id != other.id)
|
- |
|
| 423 |
return false;
|
- |
|
| 424 |
if (astId != other.astId)
|
- |
|
| 425 |
return false;
|
- |
|
| 426 |
if (internal != other.internal)
|
- |
|
| 427 |
return false;
|
- |
|
| 428 |
if (investmentOk != other.investmentOk)
|
- |
|
| 429 |
return false;
|
- |
|
| 430 |
if (latitude == null) {
|
- |
|
| 431 |
if (other.latitude != null)
|
- |
|
| 432 |
return false;
|
- |
|
| 433 |
} else if (!latitude.equals(other.latitude))
|
- |
|
| 434 |
return false;
|
- |
|
| 435 |
if (longitude == null) {
|
- |
|
| 436 |
if (other.longitude != null)
|
- |
|
| 437 |
return false;
|
- |
|
| 438 |
} else if (!longitude.equals(other.longitude))
|
- |
|
| 439 |
return false;
|
- |
|
| 440 |
if (Float.floatToIntBits(minimumInvestment) != Float.floatToIntBits(other.minimumInvestment))
|
395 |
return Objects.hash(id, codeInt, code, latitude, longitude, counterSize, counterPotential, warehouseId, minimumInvestment, graceDate, investmentOk, active, pan, userAddress, internal, bagsLastCredited, fofoType, activationType, activeTimeStamp, target, graceCount, astId, shopifyLocationId, shopifyCustomerId, gstNumber);
|
| 441 |
return false;
|
- |
|
| 442 |
if (pan == null) {
|
- |
|
| 443 |
if (other.pan != null)
|
- |
|
| 444 |
return false;
|
- |
|
| 445 |
} else if (!pan.equals(other.pan))
|
- |
|
| 446 |
return false;
|
- |
|
| 447 |
if (userAddress == null) {
|
- |
|
| 448 |
if (other.userAddress != null)
|
- |
|
| 449 |
return false;
|
- |
|
| 450 |
} else if (!userAddress.equals(other.userAddress))
|
- |
|
| 451 |
return false;
|
- |
|
| 452 |
if (warehouseId != other.warehouseId)
|
- |
|
| 453 |
return false;
|
- |
|
| 454 |
return true;
|
- |
|
| 455 |
}
|
396 |
}
|
| 456 |
|
397 |
|
| 457 |
@Override
|
398 |
@Override
|
| 458 |
public String toString() {
|
399 |
public String toString() {
|
| - |
|
400 |
return "FofoStore{" +
|
| - |
|
401 |
"id=" + id +
|
| - |
|
402 |
", codeInt=" + codeInt +
|
| - |
|
403 |
", code='" + code + '\'' +
|
| 459 |
return "FofoStore [id=" + id + ",astId=" + astId + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
|
404 |
", latitude='" + latitude + '\'' +
|
| - |
|
405 |
", longitude='" + longitude + '\'' +
|
| - |
|
406 |
", counterSize=" + counterSize +
|
| 460 |
+ ", counterSize=" + counterSize + ", counterPotential=" + counterPotential + ", warehouseId="
|
407 |
", counterPotential=" + counterPotential +
|
| - |
|
408 |
", warehouseId=" + warehouseId +
|
| 461 |
+ warehouseId + ", minimumInvestment=" + minimumInvestment + ", graceDate=" + graceDate
|
409 |
", minimumInvestment=" + minimumInvestment +
|
| - |
|
410 |
", graceDate=" + graceDate +
|
| 462 |
+ ", investmentOk=" + investmentOk + ", active=" + active + ", pan=" + pan + ", userAddress="
|
411 |
", investmentOk=" + investmentOk +
|
| - |
|
412 |
", active=" + active +
|
| - |
|
413 |
", pan='" + pan + '\'' +
|
| - |
|
414 |
", userAddress=" + userAddress +
|
| - |
|
415 |
", internal=" + internal +
|
| 463 |
+ userAddress + ", internal=" + internal + ", bagsLastCredited=" + bagsLastCredited + ", fofoType="
|
416 |
", bagsLastCredited=" + bagsLastCredited +
|
| - |
|
417 |
", fofoType=" + fofoType +
|
| 464 |
+ fofoType + ", activationType=" + activationType + ", activeTimeStamp=" + activeTimeStamp
|
418 |
", activationType=" + activationType +
|
| - |
|
419 |
", activeTimeStamp=" + activeTimeStamp +
|
| - |
|
420 |
", target=" + target +
|
| 465 |
+ ", graceCount=" + graceCount + "]";
|
421 |
", graceCount=" + graceCount +
|
| - |
|
422 |
", astId=" + astId +
|
| - |
|
423 |
", shopifyLocationId='" + shopifyLocationId + '\'' +
|
| - |
|
424 |
", shopifyCustomerId='" + shopifyCustomerId + '\'' +
|
| - |
|
425 |
", gstNumber='" + gstNumber + '\'' +
|
| - |
|
426 |
'}';
|
| 466 |
}
|
427 |
}
|
| 467 |
|
- |
|
| 468 |
}
|
428 |
}
|
| 469 |
|
429 |
|