@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((firstName == null) ? 0 : firstName.hashCode()); result = prime * result + ((lastName == null) ? 0 : lastName.hashCode()); result = prime * result + ((birthdate == null) ? 0 : birthdate.hashCode()); result = prime * result + ((active == null) ? 0 : active.hashCode()); result = prime * result + ((role == null) ? 0 : role.hashCode()); result = prime * result + ((email == null) ? 0 : email.hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((cnpj == null) ? 0 : cnpj.hashCode()); result = prime * result + ((complemento == null) ? 0 : complemento.hashCode()); result = prime * result + ((fax == null) ? 0 : fax.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((ie == null) ? 0 : ie.hashCode()); result = prime * result + ((inativo == null) ? 0 : inativo.hashCode()); result = prime * result + ((logradouro == null) ? 0 : logradouro.hashCode()); result = prime * result + ((nome == null) ? 0 : nome.hashCode()); result = prime * result + ((numero == null) ? 0 : numero.hashCode()); result = prime * result + ((telefone == null) ? 0 : telefone.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final SignUpResponse other = (SignUpResponse) obj; if ((id == null && other.id != null) || !id.equals(other.id)) return false; if ((firstName == null && other.firstName != null) || !firstName.equals(other.firstName)) return false; if ((lastName == null && other.lastName != null) || !lastName.equals(other.lastName)) return false; if ((birthdate == null && other.birthdate != null) || !birthdate.equals(other.birthdate)) return false; if ((active == null && other.active != null) || !active.equals(other.active)) return false; if ((role == null && other.role != null) || !role.equals(other.role)) return false; if ((email == null && other.email != null) || !email.equals(other.email)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Fabricante other = (Fabricante) obj; if (cnpj == null) { if (other.cnpj != null) return false; } else if (!cnpj.equals(other.cnpj)) return false; if (complemento == null) { if (other.complemento != null) return false; } else if (!complemento.equals(other.complemento)) return false; if (fax == null) { if (other.fax != null) return false; } else if (!fax.equals(other.fax)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (ie == null) { if (other.ie != null) return false; } else if (!ie.equals(other.ie)) return false; if (inativo == null) { if (other.inativo != null) return false; } else if (!inativo.equals(other.inativo)) return false; if (logradouro == null) { if (other.logradouro != null) return false; } else if (!logradouro.equals(other.logradouro)) return false; if (nome == null) { if (other.nome != null) return false; } else if (!nome.equals(other.nome)) return false; if (numero == null) { if (other.numero != null) return false; } else if (!numero.equals(other.numero)) return false; if (telefone == null) { if (other.telefone != null) return false; } else if (!telefone.equals(other.telefone)) return false; return true; }