- correção na geração de asientos exclusivos
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@25293 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
79769b2929
commit
27179b0371
|
@ -59,7 +59,7 @@ public class AsientoExclusivo implements Serializable {
|
||||||
@JoinColumn(name = "FECCORRIDA")})
|
@JoinColumn(name = "FECCORRIDA")})
|
||||||
private Corrida corrida;
|
private Corrida corrida;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "DESTINO_ID")
|
@JoinColumn(name = "DESTINO_ID",referencedColumnName = "PARADA_ID")
|
||||||
private Parada destino;
|
private Parada destino;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "PARADA_ID")
|
@JoinColumn(name = "PARADA_ID")
|
||||||
|
|
|
@ -52,13 +52,11 @@ public class EsquemaAsiento implements Serializable {
|
||||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private EsquemaCorrida esquemaCorrida;
|
private EsquemaCorrida esquemaCorrida;
|
||||||
|
|
||||||
@Column(name = "MOTIVOBLOQUEO")
|
@Column(name = "MOTIVOBLOQUEO")
|
||||||
private String motivobloqueo;
|
private String motivobloqueo;
|
||||||
|
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "DESTINO_ID")
|
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||||
private Parada destinoId;
|
private Parada destino;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,12 +132,12 @@ public class EsquemaAsiento implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Parada getDestinoId() {
|
public Parada getDestino() {
|
||||||
return destinoId;
|
return destino;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDestinoId(Parada destinoId) {
|
public void setDestino(Parada destinoId) {
|
||||||
this.destinoId = destinoId;
|
this.destino = destinoId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMotivobloqueo() {
|
public String getMotivobloqueo() {
|
||||||
|
|
|
@ -536,7 +536,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
asientoExclusivo.setMotivobloqueo(null);
|
asientoExclusivo.setMotivobloqueo(null);
|
||||||
} else {
|
} else {
|
||||||
asientoExclusivo.setMotivobloqueo(ea.getMotivobloqueo());
|
asientoExclusivo.setMotivobloqueo(ea.getMotivobloqueo());
|
||||||
asientoExclusivo.setDestino(ea.getDestinoId());
|
asientoExclusivo.setDestino(ea.getDestino());
|
||||||
}
|
}
|
||||||
|
|
||||||
asientoExclusivo.setActivo(Boolean.TRUE);
|
asientoExclusivo.setActivo(Boolean.TRUE);
|
||||||
|
|
Loading…
Reference in New Issue