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-87c2c4800839master
parent
0284c6df57
commit
a7ed568707
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue