execution loading bugfix
This commit is contained in:
parent
67939b3776
commit
d319f562aa
1 changed files with 6 additions and 10 deletions
|
|
@ -22,21 +22,17 @@ public record ExecUploadKey(LocalDate tradeDate, Long exchangeExecutionId, Strin
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
if (!(o instanceof ExecUploadKey that)) return false;
|
||||
|
||||
ExecUploadKey that = (ExecUploadKey) o;
|
||||
|
||||
if (!Objects.equals(tradeDate, that.tradeDate)) return false;
|
||||
if (!Objects.equals(exchangeExecutionId, that.exchangeExecutionId))
|
||||
return false;
|
||||
return Objects.equals(side, that.side);
|
||||
return Objects.equals(side, that.side) && Objects.equals(market, that.market) && Objects.equals(tradeDate, that.tradeDate) && Objects.equals(exchangeExecutionId, that.exchangeExecutionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = tradeDate != null ? tradeDate.hashCode() : 0;
|
||||
result = 31 * result + (exchangeExecutionId != null ? exchangeExecutionId.hashCode() : 0);
|
||||
result = 31 * result + (side != null ? side.hashCode() : 0);
|
||||
int result = Objects.hashCode(tradeDate);
|
||||
result = 31 * result + Objects.hashCode(exchangeExecutionId);
|
||||
result = 31 * result + Objects.hashCode(market);
|
||||
result = 31 * result + Objects.hashCode(side);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue