@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;
   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;
 }