From a7ed56870758f7f08efc465aef73e43a1b914175 Mon Sep 17 00:00:00 2001 From: leonardo Date: Wed, 30 Jul 2014 13:06:49 +0000 Subject: [PATCH] =?UTF-8?q?Cadastro=20=C3=B4nibus-=20N=C3=A3o=20salva=20ma?= =?UTF-8?q?rca=20(fixed=20bug=20#5542)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@36895 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/entidad/MarcaAutobus.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/rjconsultores/ventaboletos/entidad/MarcaAutobus.java b/src/com/rjconsultores/ventaboletos/entidad/MarcaAutobus.java index 89778251a..ba08b7d71 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/MarcaAutobus.java +++ b/src/com/rjconsultores/ventaboletos/entidad/MarcaAutobus.java @@ -71,4 +71,17 @@ public class MarcaAutobus implements Serializable { public String toString(){ return this.descmarca; } + + @Override + public boolean equals(Object object) { + // TODO: Warning - this method won't work in the case the id fields are not set + if (!(object instanceof MarcaAutobus)) { + return false; + } + MarcaAutobus other = (MarcaAutobus) object; + if ((this.marcaAutobusId == null && other.marcaAutobusId != null) || (this.marcaAutobusId != null && !this.marcaAutobusId.equals(other.marcaAutobusId))) { + return false; + } + return true; + } }