rafael 2012-10-16 21:04:45 +00:00
parent a1a6420707
commit 0c9ab5462e
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ import javax.persistence.SequenceGenerator;
* @author Rafius * @author Rafius
*/ */
@Entity @Entity
@SequenceGenerator(name = "CORRIDA_SEQ", sequenceName = "CORRIDA_SEQ", allocationSize = 1) //@SequenceGenerator(name = "CORRIDA_SEQ", sequenceName = "CORRIDA_SEQ", allocationSize = 1)
@Table(name = "CORRIDA_CTRL") @Table(name = "CORRIDA_CTRL")
public class CorridaCtrl implements Serializable { public class CorridaCtrl implements Serializable {
@ -33,7 +33,7 @@ public class CorridaCtrl implements Serializable {
@Id @Id
@Basic(optional = false) @Basic(optional = false)
@Column(name = "CORRIDA_ID") @Column(name = "CORRIDA_ID")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_SEQ") //@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_SEQ")
private Integer corridaId; private Integer corridaId;
@Column(name = "HORARIO") @Column(name = "HORARIO")
@Temporal(TemporalType.TIME) @Temporal(TemporalType.TIME)

View File

@ -323,6 +323,7 @@ public class CorridaServiceImpl implements CorridaService {
CorridaCtrl corridaCtrl = corridaCtrlService.buscar(ruta, claseServicio, marca, horario, isPisoExtra); CorridaCtrl corridaCtrl = corridaCtrlService.buscar(ruta, claseServicio, marca, horario, isPisoExtra);
if (corridaCtrl == null) { if (corridaCtrl == null) {
corridaCtrl = new CorridaCtrl(); corridaCtrl = new CorridaCtrl();
corridaCtrl.setCorridaId(esquemaCorrida.getNumCorrida()); corridaCtrl.setCorridaId(esquemaCorrida.getNumCorrida());
corridaCtrl.setMarca(marca); corridaCtrl.setMarca(marca);
corridaCtrl.setRuta(ruta); corridaCtrl.setRuta(ruta);