Cadastro ônibus- Não salva marca (fixed bug #5542)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@36895 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2014-07-30 13:06:49 +00:00
parent 0284c6df57
commit a7ed568707
1 changed files with 13 additions and 0 deletions

View File

@ -71,4 +71,17 @@ public class MarcaAutobus implements Serializable {
public String toString(){ public String toString(){
return this.descmarca; 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;
}
} }