Correção em tela de cadastro de totalizadores não fiscais.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@45379 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d45d6c6755
commit
3e26520a2a
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue