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
*/
@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)

View File

@ -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);