fixes bug #7379
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@58791 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
15ee106eb4
commit
fa8b4a6617
|
@ -483,7 +483,7 @@ public class EsquemaCorrida implements Serializable {
|
|||
this.indCorridaExtra = indCorridaExtra;
|
||||
}
|
||||
|
||||
public void clone(EsquemaCorrida other){
|
||||
/* public void clone(EsquemaCorrida other){
|
||||
this.activo = other.activo;
|
||||
this.cantDiasGeneracion = other.cantDiasGeneracion;
|
||||
this.cantparados = other.cantparados;
|
||||
|
@ -559,8 +559,7 @@ public class EsquemaCorrida implements Serializable {
|
|||
}
|
||||
esquemaAsientoList.add(a);
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
public Boolean getIndDiaSimDiaNao() {
|
||||
return indDiaSimDiaNao;
|
||||
|
|
|
@ -26,7 +26,7 @@ import javax.persistence.SequenceGenerator;
|
|||
@Entity
|
||||
@SequenceGenerator(name = "ESQUEMA_TRAMO_SEQ", sequenceName = "ESQUEMA_TRAMO_SEQ", allocationSize = 1)
|
||||
@Table(name = "ESQUEMA_TRAMO")
|
||||
public class EsquemaTramo implements Serializable {
|
||||
public class EsquemaTramo implements Serializable, Comparable<EsquemaTramo> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
|
@ -34,26 +34,34 @@ public class EsquemaTramo implements Serializable {
|
|||
@Column(name = "ESQUEMATRAMO_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_TRAMO_SEQ")
|
||||
private Integer esquematramoId;
|
||||
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
|
||||
private Integer usuarioId;
|
||||
@Column(name = "TIEMPOESTANCIA")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date tiempoEstancia;
|
||||
|
||||
@JoinColumn(name = "TRAMO_ID", referencedColumnName = "TRAMO_ID")
|
||||
@ManyToOne
|
||||
private Tramo tramo;
|
||||
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
|
||||
@Column(name = "PLATAFORMA")
|
||||
private String plataforma;
|
||||
|
||||
@Column(name = "EXCEPCIONRECORRIDO")
|
||||
private Date excepcionRecorrido;
|
||||
|
||||
|
@ -167,4 +175,14 @@ public class EsquemaTramo implements Serializable {
|
|||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaTramo[esquematramoId=" + esquematramoId + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(EsquemaTramo o) {
|
||||
if (this.numsecuencia > o.getNumsecuencia()) {
|
||||
return 1;
|
||||
} else if (this.numsecuencia < o.getNumsecuencia()) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue