diff --git a/src/com/rjconsultores/ventaboletos/entidad/FiscalTotnaofiscalEmpresa.java b/src/com/rjconsultores/ventaboletos/entidad/FiscalTotnaofiscalEmpresa.java index dc83f5473..bae49059b 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/FiscalTotnaofiscalEmpresa.java +++ b/src/com/rjconsultores/ventaboletos/entidad/FiscalTotnaofiscalEmpresa.java @@ -91,4 +91,35 @@ public class FiscalTotnaofiscalEmpresa { public void setFiscaltotnaofiscalId(Long fiscaltotnaofiscalId) { this.fiscaltotnaofiscalId = fiscaltotnaofiscalId; } + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((empresa == null) ? 0 : empresa.hashCode()); + result = prime * result + ((tipototalizador == null) ? 0 : tipototalizador.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; + FiscalTotnaofiscalEmpresa other = (FiscalTotnaofiscalEmpresa) obj; + if (empresa == null) { + if (other.empresa != null) + return false; + } else if (!empresa.equals(other.empresa)) + return false; + if (tipototalizador == null) { + if (other.tipototalizador != null) + return false; + } else if (!tipototalizador.equals(other.tipototalizador)) + return false; + return true; + } + + }