git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@29718 d1611594-4594-4d17-8e1d-87c2c4800839
parent
5cc14675cb
commit
283b4d3c64
|
@ -72,6 +72,37 @@ public class Corrida implements Serializable {
|
||||||
SimpleDateFormat sf = new SimpleDateFormat("dd/MM HH:mm");
|
SimpleDateFormat sf = new SimpleDateFormat("dd/MM HH:mm");
|
||||||
return corridaId + " Hora:" + sf.format(feccorrida);
|
return corridaId + " Hora:" + sf.format(feccorrida);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((corridaId == null) ? 0 : corridaId.hashCode());
|
||||||
|
result = prime * result + ((feccorrida == null) ? 0 : feccorrida.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
Id other = (Id) obj;
|
||||||
|
if (corridaId == null) {
|
||||||
|
if (other.corridaId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!corridaId.equals(other.corridaId))
|
||||||
|
return false;
|
||||||
|
if (feccorrida == null) {
|
||||||
|
if (other.feccorrida != null)
|
||||||
|
return false;
|
||||||
|
} else if (!feccorrida.equals(other.feccorrida))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EmbeddedId
|
@EmbeddedId
|
||||||
|
|
Loading…
Reference in New Issue