fixes bug #7891
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@59917 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
fa657765cb
commit
ca90993c35
|
@ -78,4 +78,29 @@ public class ParadaEsquema {
|
|||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((numsecuencia == null) ? 0 : numsecuencia.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (!(obj instanceof ParadaEsquema))
|
||||
return false;
|
||||
ParadaEsquema other = (ParadaEsquema) obj;
|
||||
if (numsecuencia == null) {
|
||||
if (other.numsecuencia != null)
|
||||
return false;
|
||||
} else if (!numsecuencia.equals(other.numsecuencia))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue