Correção de equals
fixes bug 6745 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@49225 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
50772d5244
commit
bd297500b9
|
@ -118,6 +118,13 @@ public class EmpresaContaBancaria implements Serializable {
|
|||
}
|
||||
|
||||
EmpresaContaBancaria oldObject = (EmpresaContaBancaria) old;
|
||||
|
||||
if(this.getInstituicaoFinandeira().equals(oldObject.getInstituicaoFinandeira()) &&
|
||||
this.getNumAgencia().equals(oldObject.getNumAgencia()) && this.getNumConta().equals(oldObject.getNumConta()) &&
|
||||
this.getActivo().equals(oldObject.getActivo())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(this.empresaContaBancariaId == null && oldObject.empresaContaBancariaId == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue