@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Order other = (Order) obj;
        if (this.orderNum != other.orderNum && (this.orderNum == null || !this.orderNum.equals(other.orderNum))) {
            return false;
        }
        if (this.orderId != other.orderId) {
            return false;
        }
        if (this.orderSum != other.orderSum) {
            return false;
        }
        return true;
    }