Num Corrida
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@22104 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a1a6420707
commit
0c9ab5462e
|
@ -25,7 +25,7 @@ import javax.persistence.SequenceGenerator;
|
|||
* @author Rafius
|
||||
*/
|
||||
@Entity
|
||||
@SequenceGenerator(name = "CORRIDA_SEQ", sequenceName = "CORRIDA_SEQ", allocationSize = 1)
|
||||
//@SequenceGenerator(name = "CORRIDA_SEQ", sequenceName = "CORRIDA_SEQ", allocationSize = 1)
|
||||
@Table(name = "CORRIDA_CTRL")
|
||||
public class CorridaCtrl implements Serializable {
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class CorridaCtrl implements Serializable {
|
|||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CORRIDA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_SEQ")
|
||||
//@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_SEQ")
|
||||
private Integer corridaId;
|
||||
@Column(name = "HORARIO")
|
||||
@Temporal(TemporalType.TIME)
|
||||
|
|
|
@ -323,7 +323,8 @@ public class CorridaServiceImpl implements CorridaService {
|
|||
CorridaCtrl corridaCtrl = corridaCtrlService.buscar(ruta, claseServicio, marca, horario, isPisoExtra);
|
||||
if (corridaCtrl == null) {
|
||||
corridaCtrl = new CorridaCtrl();
|
||||
corridaCtrl.setCorridaId(esquemaCorrida.getNumCorrida());
|
||||
|
||||
corridaCtrl.setCorridaId(esquemaCorrida.getNumCorrida());
|
||||
corridaCtrl.setMarca(marca);
|
||||
corridaCtrl.setRuta(ruta);
|
||||
corridaCtrl.setClaseServicio(claseServicio);
|
||||
|
|
Loading…
Reference in New Issue