- 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")})
|
||||
private Corrida corrida;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "DESTINO_ID")
|
||||
@JoinColumn(name = "DESTINO_ID",referencedColumnName = "PARADA_ID")
|
||||
private Parada destino;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "PARADA_ID")
|
||||
|
|
|
@ -52,13 +52,11 @@ public class EsquemaAsiento implements Serializable {
|
|||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
|
||||
@Column(name = "MOTIVOBLOQUEO")
|
||||
private String motivobloqueo;
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "DESTINO_ID")
|
||||
private Parada destinoId;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
private Parada destino;
|
||||
|
||||
|
||||
|
||||
|
@ -134,12 +132,12 @@ public class EsquemaAsiento implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
public Parada getDestinoId() {
|
||||
return destinoId;
|
||||
public Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
|
||||
public void setDestinoId(Parada destinoId) {
|
||||
this.destinoId = destinoId;
|
||||
public void setDestino(Parada destinoId) {
|
||||
this.destino = destinoId;
|
||||
}
|
||||
|
||||
public String getMotivobloqueo() {
|
||||
|
|
|
@ -536,7 +536,7 @@ public class CorridaServiceImpl implements CorridaService {
|
|||
asientoExclusivo.setMotivobloqueo(null);
|
||||
} else {
|
||||
asientoExclusivo.setMotivobloqueo(ea.getMotivobloqueo());
|
||||
asientoExclusivo.setDestino(ea.getDestinoId());
|
||||
asientoExclusivo.setDestino(ea.getDestino());
|
||||
}
|
||||
|
||||
asientoExclusivo.setActivo(Boolean.TRUE);
|
||||
|
|
Loading…
Reference in New Issue