@Override public int hashCode() { int result = id.hashCode(); result = 31 * result + restaurantId.hashCode(); result = 31 * result + clientId.hashCode(); result = 31 * result + menuItemId.hashCode(); result = 31 * result + orderDate.hashCode(); result = 31 * result + (isConfirmed ? 1 : 0); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((balance == null) ? 0 : balance.hashCode()); result = prime * result + ((client == null) ? 0 : client.hashCode()); result = prime * result + ((closingDate == null) ? 0 : closingDate.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((openingDate == null) ? 0 : openingDate.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((address == null) ? 0 : address.hashCode()); result = prime * result + ((client == null) ? 0 : client.hashCode()); result = prime * result + ((email == null) ? 0 : email.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((position == null) ? 0 : position.hashCode()); result = prime * result + ((telephone == null) ? 0 : telephone.hashCode()); return result; }