git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@21877 d1611594-4594-4d17-8e1d-87c2c4800839
parent
ce4f9e08a7
commit
c77eeef053
|
@ -6,9 +6,6 @@ package com.rjconsultores.ventaboletos.dao;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
|
|
|
@ -14,5 +14,6 @@ import java.util.Map;
|
|||
*/
|
||||
public interface GenericDAOInforme {
|
||||
|
||||
public ResultSet executarSQL(Connection conn, Map parameters);
|
||||
@SuppressWarnings("rawtypes")
|
||||
public ResultSet executarSQL(Connection conn, Map parameters);
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
|
|
|
@ -12,5 +12,5 @@ import java.util.List;
|
|||
* @author rodrigo
|
||||
*/
|
||||
public interface PerfilDAO extends GenericDAO<Perfil, Integer> {
|
||||
public List<Perfil> buscar(String dscPerfil);
|
||||
public List<Perfil> buscar(String dscPerfil);
|
||||
}
|
||||
|
|
|
@ -4,11 +4,8 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.MarcaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
import com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
|
@ -18,6 +15,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.MarcaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
|
|
|
@ -4,23 +4,23 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.MatchMode;
|
||||
import org.hibernate.criterion.Order;
|
||||
import org.hibernate.criterion.Projections;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ParadaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||
import com.rjconsultores.ventaboletos.entidad.Nodo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoParada;
|
||||
import java.util.List;
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.MatchMode;
|
||||
import org.hibernate.criterion.Order;
|
||||
import org.hibernate.criterion.ProjectionList;
|
||||
import org.hibernate.criterion.Projections;
|
||||
import org.hibernate.criterion.PropertyProjection;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -4,23 +4,20 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ParamAcumulaMasivoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo;
|
||||
import com.rjconsultores.ventaboletos.entidad.VigenciaTarifa;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ParamAcumulaMasivoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafius
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.util.List;
|
|||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
@ -25,7 +24,7 @@ public class ParamArticuloHibernateDAO extends
|
|||
@Override
|
||||
public List<ParamArticulo> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
//c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
// c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ParamCostoTarjetaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
|
@ -15,6 +13,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ParamCostoTarjetaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafius
|
||||
|
|
|
@ -4,22 +4,19 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PeriodoVacacionalDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.PeriodoVacacional;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PeriodoVacacionalDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.PeriodoVacacional;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafius
|
||||
|
|
|
@ -6,19 +6,16 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -6,24 +6,13 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -6,21 +6,16 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import javax.persistence.Basic;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -6,21 +6,16 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import javax.persistence.Basic;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -36,398 +36,398 @@ import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
|||
@Table(name = "CORRIDA")
|
||||
public class Corrida implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Embeddable
|
||||
public static class Id implements Serializable {
|
||||
|
||||
@Column(name = "CORRIDA_ID")
|
||||
private Integer corridaId;
|
||||
@Column(name = "FECCORRIDA")
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date feccorrida;
|
||||
|
||||
public Id() {
|
||||
}
|
||||
|
||||
public Integer getCorridaId() {
|
||||
return corridaId;
|
||||
}
|
||||
|
||||
public void setCorridaId(Integer corridaId) {
|
||||
this.corridaId = corridaId;
|
||||
}
|
||||
|
||||
public Date getFeccorrida() {
|
||||
return feccorrida;
|
||||
}
|
||||
|
||||
public void setFeccorrida(Date feccorrida) {
|
||||
this.feccorrida = feccorrida;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
SimpleDateFormat sf = new SimpleDateFormat("HH:mm");
|
||||
return corridaId + " Hora:" + sf.format(feccorrida);
|
||||
}
|
||||
}
|
||||
@EmbeddedId
|
||||
private Id id = new Id();
|
||||
@Column(name = "FECHORSALIDA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorsalida;
|
||||
@Column(name = "INDSTATUSCORRIDA")
|
||||
private String indstatuscorrida;
|
||||
@Column(name = "FECHORTARJETAVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechortarjetaviaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
||||
private Autobus autobus;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CONDUCTOR1_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor;
|
||||
@JoinColumn(name = "CONDUCTOR2_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor1;
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID", insertable = false, updatable = false)
|
||||
@ManyToOne(optional = false)
|
||||
private CorridaCtrl corridaCtrl;
|
||||
@OneToMany(mappedBy = "corrida", cascade = CascadeType.ALL)
|
||||
private List<CorridaTramo> corridaTramoList;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "NODO_ID", referencedColumnName = "NODO_ID")
|
||||
@ManyToOne
|
||||
private Nodo nodo;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origem;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ZONA_ID", referencedColumnName = "ZONA_ID")
|
||||
@ManyToOne
|
||||
private Zona zona;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID")
|
||||
private RolOperativo rolOperativo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Short cantParados;
|
||||
@Column(name = "TIPOSERVICIO_ID")
|
||||
private Short tipoServicio;
|
||||
@Column(name = "fechorsalidaoriginal")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date fechorSalidaOriginal;
|
||||
@OneToOne
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
@JoinColumn(name = "esquemacorrida_id", referencedColumnName = "esquemacorrida_id")
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
@Column(name = "indtipoventa")
|
||||
private String indTipoVenta;
|
||||
@Column(name = "EQUIVALENCIA_ID")
|
||||
private String equivalenciaId;
|
||||
@ManyToOne
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDAREBOTE_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDAREBOTE", referencedColumnName = "FECCORRIDA")})
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
private Corrida corridaRebote;
|
||||
@ManyToOne
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDA2_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDA2", referencedColumnName = "FECCORRIDA")})
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
private Corrida corridaPiso;
|
||||
@JoinColumn(name = "DIVISIONINGRESO_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
@Column(name = "NUMPISO")
|
||||
private Integer numPiso;
|
||||
|
||||
|
||||
public String getIndTipoVenta() {
|
||||
return indTipoVenta;
|
||||
}
|
||||
|
||||
public void setIndTipoVenta(String indTipoVenta) {
|
||||
this.indTipoVenta = indTipoVenta;
|
||||
}
|
||||
|
||||
public Date getFechorSalidaOriginal() {
|
||||
return fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public void setFechorSalidaOriginal(Date fechorSalidaOriginal) {
|
||||
if (fechorSalidaOriginal != null) {
|
||||
fechorSalidaOriginal = DateUtil.normalizar(fechorSalidaOriginal);
|
||||
}
|
||||
this.fechorSalidaOriginal = fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorrida() {
|
||||
return esquemaCorrida;
|
||||
}
|
||||
|
||||
public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||
this.esquemaCorrida = esquemaCorrida;
|
||||
}
|
||||
|
||||
public Corrida() {
|
||||
}
|
||||
|
||||
public Corrida(Marca marca, Integer corridaId, Parada origen, Parada destino, ClaseServicio claseServicio, Date horario) {
|
||||
this.id = new Id();
|
||||
this.id.setCorridaId(corridaId);
|
||||
this.setFechorsalida(horario);
|
||||
this.origem = origen;
|
||||
this.destino = destino;
|
||||
this.claseServicio = claseServicio;
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public Id getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Id id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<CorridaTramo> getCorridaTramoList() {
|
||||
return corridaTramoList;
|
||||
}
|
||||
|
||||
public void setCorridaTramoList(List<CorridaTramo> corridaTramoList) {
|
||||
this.corridaTramoList = corridaTramoList;
|
||||
}
|
||||
|
||||
public Date getFechorsalida() {
|
||||
return fechorsalida;
|
||||
}
|
||||
|
||||
public void setFechorsalida(Date fechorsalida) {
|
||||
if (fechorsalida != null) {
|
||||
fechorsalida = DateUtil.normalizar(fechorsalida);
|
||||
}
|
||||
this.fechorsalida = fechorsalida;
|
||||
}
|
||||
|
||||
public String getIndstatuscorrida() {
|
||||
return indstatuscorrida;
|
||||
}
|
||||
|
||||
public void setIndstatuscorrida(String indstatuscorrida) {
|
||||
this.indstatuscorrida = indstatuscorrida;
|
||||
}
|
||||
|
||||
public Date getFechortarjetaviaje() {
|
||||
return fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public void setFechortarjetaviaje(Date fechortarjetaviaje) {
|
||||
this.fechortarjetaviaje = fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Autobus getAutobus() {
|
||||
return autobus;
|
||||
}
|
||||
|
||||
public void setAutobus(Autobus autobus) {
|
||||
this.autobus = autobus;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public Conductor getConductor() {
|
||||
return conductor;
|
||||
}
|
||||
|
||||
public void setConductor(Conductor conductor) {
|
||||
this.conductor = conductor;
|
||||
}
|
||||
|
||||
public Conductor getConductor1() {
|
||||
return conductor1;
|
||||
}
|
||||
|
||||
public void setConductor1(Conductor conductor1) {
|
||||
this.conductor1 = conductor1;
|
||||
}
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Embeddable
|
||||
public static class Id implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Column(name = "CORRIDA_ID")
|
||||
private Integer corridaId;
|
||||
@Column(name = "FECCORRIDA")
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date feccorrida;
|
||||
|
||||
public Id() {
|
||||
}
|
||||
|
||||
public Integer getCorridaId() {
|
||||
return corridaId;
|
||||
}
|
||||
|
||||
public void setCorridaId(Integer corridaId) {
|
||||
this.corridaId = corridaId;
|
||||
}
|
||||
|
||||
public Date getFeccorrida() {
|
||||
return feccorrida;
|
||||
}
|
||||
|
||||
public void setFeccorrida(Date feccorrida) {
|
||||
this.feccorrida = feccorrida;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
SimpleDateFormat sf = new SimpleDateFormat("HH:mm");
|
||||
return corridaId + " Hora:" + sf.format(feccorrida);
|
||||
}
|
||||
}
|
||||
|
||||
@EmbeddedId
|
||||
private Id id = new Id();
|
||||
@Column(name = "FECHORSALIDA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorsalida;
|
||||
@Column(name = "INDSTATUSCORRIDA")
|
||||
private String indstatuscorrida;
|
||||
@Column(name = "FECHORTARJETAVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechortarjetaviaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
||||
private Autobus autobus;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CONDUCTOR1_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor;
|
||||
@JoinColumn(name = "CONDUCTOR2_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor1;
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID", insertable = false, updatable = false)
|
||||
@ManyToOne(optional = false)
|
||||
private CorridaCtrl corridaCtrl;
|
||||
@OneToMany(mappedBy = "corrida", cascade = CascadeType.ALL)
|
||||
private List<CorridaTramo> corridaTramoList;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "NODO_ID", referencedColumnName = "NODO_ID")
|
||||
@ManyToOne
|
||||
private Nodo nodo;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origem;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ZONA_ID", referencedColumnName = "ZONA_ID")
|
||||
@ManyToOne
|
||||
private Zona zona;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID")
|
||||
private RolOperativo rolOperativo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Short cantParados;
|
||||
@Column(name = "TIPOSERVICIO_ID")
|
||||
private Short tipoServicio;
|
||||
@Column(name = "fechorsalidaoriginal")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date fechorSalidaOriginal;
|
||||
@OneToOne
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
@JoinColumn(name = "esquemacorrida_id", referencedColumnName = "esquemacorrida_id")
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
@Column(name = "indtipoventa")
|
||||
private String indTipoVenta;
|
||||
@Column(name = "EQUIVALENCIA_ID")
|
||||
private String equivalenciaId;
|
||||
@ManyToOne
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDAREBOTE_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDAREBOTE", referencedColumnName = "FECCORRIDA") })
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
private Corrida corridaRebote;
|
||||
@ManyToOne
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDA2_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDA2", referencedColumnName = "FECCORRIDA") })
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
private Corrida corridaPiso;
|
||||
@JoinColumn(name = "DIVISIONINGRESO_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
@Column(name = "NUMPISO")
|
||||
private Integer numPiso;
|
||||
|
||||
public String getIndTipoVenta() {
|
||||
return indTipoVenta;
|
||||
}
|
||||
|
||||
public void setIndTipoVenta(String indTipoVenta) {
|
||||
this.indTipoVenta = indTipoVenta;
|
||||
}
|
||||
|
||||
public Date getFechorSalidaOriginal() {
|
||||
return fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public void setFechorSalidaOriginal(Date fechorSalidaOriginal) {
|
||||
if (fechorSalidaOriginal != null) {
|
||||
fechorSalidaOriginal = DateUtil.normalizar(fechorSalidaOriginal);
|
||||
}
|
||||
this.fechorSalidaOriginal = fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorrida() {
|
||||
return esquemaCorrida;
|
||||
}
|
||||
|
||||
public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||
this.esquemaCorrida = esquemaCorrida;
|
||||
}
|
||||
|
||||
public Corrida() {
|
||||
}
|
||||
|
||||
public Corrida(Marca marca, Integer corridaId, Parada origen, Parada destino, ClaseServicio claseServicio, Date horario) {
|
||||
this.id = new Id();
|
||||
this.id.setCorridaId(corridaId);
|
||||
this.setFechorsalida(horario);
|
||||
this.origem = origen;
|
||||
this.destino = destino;
|
||||
this.claseServicio = claseServicio;
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public Id getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Id id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<CorridaTramo> getCorridaTramoList() {
|
||||
return corridaTramoList;
|
||||
}
|
||||
|
||||
public void setCorridaTramoList(List<CorridaTramo> corridaTramoList) {
|
||||
this.corridaTramoList = corridaTramoList;
|
||||
}
|
||||
|
||||
public Date getFechorsalida() {
|
||||
return fechorsalida;
|
||||
}
|
||||
|
||||
public void setFechorsalida(Date fechorsalida) {
|
||||
if (fechorsalida != null) {
|
||||
fechorsalida = DateUtil.normalizar(fechorsalida);
|
||||
}
|
||||
this.fechorsalida = fechorsalida;
|
||||
}
|
||||
|
||||
public String getIndstatuscorrida() {
|
||||
return indstatuscorrida;
|
||||
}
|
||||
|
||||
public void setIndstatuscorrida(String indstatuscorrida) {
|
||||
this.indstatuscorrida = indstatuscorrida;
|
||||
}
|
||||
|
||||
public Date getFechortarjetaviaje() {
|
||||
return fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public void setFechortarjetaviaje(Date fechortarjetaviaje) {
|
||||
this.fechortarjetaviaje = fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Autobus getAutobus() {
|
||||
return autobus;
|
||||
}
|
||||
|
||||
public void setAutobus(Autobus autobus) {
|
||||
this.autobus = autobus;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public Conductor getConductor() {
|
||||
return conductor;
|
||||
}
|
||||
|
||||
public void setConductor(Conductor conductor) {
|
||||
this.conductor = conductor;
|
||||
}
|
||||
|
||||
public Conductor getConductor1() {
|
||||
return conductor1;
|
||||
}
|
||||
|
||||
public void setConductor1(Conductor conductor1) {
|
||||
this.conductor1 = conductor1;
|
||||
}
|
||||
|
||||
public CorridaCtrl getCorridaCtrl() {
|
||||
return corridaCtrl;
|
||||
}
|
||||
public CorridaCtrl getCorridaCtrl() {
|
||||
return corridaCtrl;
|
||||
}
|
||||
|
||||
public void setCorridaCtrl(CorridaCtrl corridaCtrl) {
|
||||
this.corridaCtrl = corridaCtrl;
|
||||
}
|
||||
public void setCorridaCtrl(CorridaCtrl corridaCtrl) {
|
||||
this.corridaCtrl = corridaCtrl;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public Nodo getNodo() {
|
||||
return nodo;
|
||||
}
|
||||
public Nodo getNodo() {
|
||||
return nodo;
|
||||
}
|
||||
|
||||
public void setNodo(Nodo nodo) {
|
||||
this.nodo = nodo;
|
||||
}
|
||||
public void setNodo(Nodo nodo) {
|
||||
this.nodo = nodo;
|
||||
}
|
||||
|
||||
public Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
public Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
|
||||
public void setDestino(Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
public void setDestino(Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
|
||||
public Parada getOrigem() {
|
||||
return origem;
|
||||
}
|
||||
public Parada getOrigem() {
|
||||
return origem;
|
||||
}
|
||||
|
||||
public void setOrigem(Parada origem) {
|
||||
this.origem = origem;
|
||||
}
|
||||
public void setOrigem(Parada origem) {
|
||||
this.origem = origem;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
|
||||
public Zona getZona() {
|
||||
return zona;
|
||||
}
|
||||
public Zona getZona() {
|
||||
return zona;
|
||||
}
|
||||
|
||||
public void setZona(Zona zona) {
|
||||
this.zona = zona;
|
||||
}
|
||||
public void setZona(Zona zona) {
|
||||
this.zona = zona;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
|
||||
public Short getCantParados() {
|
||||
return cantParados;
|
||||
}
|
||||
public Short getCantParados() {
|
||||
return cantParados;
|
||||
}
|
||||
|
||||
public void setCantParados(Short cantParados) {
|
||||
this.cantParados = cantParados;
|
||||
}
|
||||
public void setCantParados(Short cantParados) {
|
||||
this.cantParados = cantParados;
|
||||
}
|
||||
|
||||
public Short getTipoServicio() {
|
||||
return tipoServicio;
|
||||
}
|
||||
public Short getTipoServicio() {
|
||||
return tipoServicio;
|
||||
}
|
||||
|
||||
public void setTipoServicio(Short tipoServicio) {
|
||||
this.tipoServicio = tipoServicio;
|
||||
}
|
||||
public void setTipoServicio(Short tipoServicio) {
|
||||
this.tipoServicio = tipoServicio;
|
||||
}
|
||||
|
||||
public String getEquivalenciaId() {
|
||||
return equivalenciaId;
|
||||
}
|
||||
public String getEquivalenciaId() {
|
||||
return equivalenciaId;
|
||||
}
|
||||
|
||||
public void setEquivalenciaId(String equivalenciaId) {
|
||||
this.equivalenciaId = equivalenciaId;
|
||||
}
|
||||
public void setEquivalenciaId(String equivalenciaId) {
|
||||
this.equivalenciaId = equivalenciaId;
|
||||
}
|
||||
|
||||
public Corrida getCorridaRebote() {
|
||||
return corridaRebote;
|
||||
}
|
||||
public Corrida getCorridaRebote() {
|
||||
return corridaRebote;
|
||||
}
|
||||
|
||||
public void setCorridaRebote(Corrida corridaRebote) {
|
||||
this.corridaRebote = corridaRebote;
|
||||
}
|
||||
public void setCorridaRebote(Corrida corridaRebote) {
|
||||
this.corridaRebote = corridaRebote;
|
||||
}
|
||||
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
|
||||
|
||||
public Corrida getCorridaPiso() {
|
||||
public Corrida getCorridaPiso() {
|
||||
return corridaPiso;
|
||||
}
|
||||
|
||||
|
@ -436,10 +436,10 @@ public class Corrida implements Serializable {
|
|||
}
|
||||
|
||||
public Integer getNumPiso() {
|
||||
return numPiso;
|
||||
}
|
||||
return numPiso;
|
||||
}
|
||||
|
||||
public void setNumPiso(Integer numPiso) {
|
||||
this.numPiso = numPiso;
|
||||
}
|
||||
public void setNumPiso(Integer numPiso) {
|
||||
this.numPiso = numPiso;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,297 +35,307 @@ import org.hibernate.annotations.NotFoundAction;
|
|||
@Table(name = "CORRIDA_TRAMO")
|
||||
public class CorridaTramo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CORRIDATRAMO_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_TRAMO_SEQ")
|
||||
private Integer corridatramoId;
|
||||
@OneToOne
|
||||
@NotFound(action=NotFoundAction.IGNORE)
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDA", referencedColumnName = "FECCORRIDA")
|
||||
})
|
||||
private Corrida corrida;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "FECHORSALIDA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorsalida;
|
||||
@Column(name = "FECHORLLEGADA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorllegada;
|
||||
@Column(name = "FECHORTARJETAVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechortarjetaviaje;
|
||||
@Column(name = "USUARIOTARJETAVIAJE_ID")
|
||||
private Integer usuariotarjetaviajeId;
|
||||
@Column(name = "NUMSECORIGEN")
|
||||
private Short numsecorigen;
|
||||
@Column(name = "NUMSECDESTINO")
|
||||
private Short numsecdestino;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "TRAMO_ID", referencedColumnName = "TRAMO_ID")
|
||||
@ManyToOne
|
||||
private Tramo tramo;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origem;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
@JoinColumn(name = "NODO_ID", referencedColumnName = "NODO_ID")
|
||||
@ManyToOne
|
||||
private Nodo nodo;
|
||||
@JoinColumn(name = "CONDUCTOR1_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor;
|
||||
@JoinColumn(name = "CONDUCTOR2_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor1;
|
||||
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
||||
@ManyToOne
|
||||
private Autobus autobus;
|
||||
@Column(name = "fechorsalidaoriginal")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date fechorSalidaOriginal;
|
||||
@Column(name = "TIEMPOESTANCIA")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date tiempoEstancia;
|
||||
@Column(name = "INDMANTTARJETA")
|
||||
private Boolean indmanttarjeta;
|
||||
@Column(name = "FOLIOTARJETAVIAJE")
|
||||
private String folioTarjeta;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CORRIDATRAMO_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CORRIDA_TRAMO_SEQ")
|
||||
private Integer corridatramoId;
|
||||
@OneToOne
|
||||
@NotFound(action = NotFoundAction.IGNORE)
|
||||
@JoinColumns({
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID"),
|
||||
@JoinColumn(name = "FECCORRIDA", referencedColumnName = "FECCORRIDA") })
|
||||
private Corrida corrida;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "FECHORSALIDA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorsalida;
|
||||
@Column(name = "FECHORLLEGADA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechorllegada;
|
||||
@Column(name = "FECHORTARJETAVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fechortarjetaviaje;
|
||||
@Column(name = "USUARIOTARJETAVIAJE_ID")
|
||||
private Integer usuariotarjetaviajeId;
|
||||
@Column(name = "NUMSECORIGEN")
|
||||
private Short numsecorigen;
|
||||
@Column(name = "NUMSECDESTINO")
|
||||
private Short numsecdestino;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "TRAMO_ID", referencedColumnName = "TRAMO_ID")
|
||||
@ManyToOne
|
||||
private Tramo tramo;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origem;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
@JoinColumn(name = "NODO_ID", referencedColumnName = "NODO_ID")
|
||||
@ManyToOne
|
||||
private Nodo nodo;
|
||||
@JoinColumn(name = "CONDUCTOR1_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor;
|
||||
@JoinColumn(name = "CONDUCTOR2_ID", referencedColumnName = "CONDUCTOR_ID")
|
||||
@ManyToOne
|
||||
private Conductor conductor1;
|
||||
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
||||
@ManyToOne
|
||||
private Autobus autobus;
|
||||
@Column(name = "fechorsalidaoriginal")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date fechorSalidaOriginal;
|
||||
@Column(name = "TIEMPOESTANCIA")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date tiempoEstancia;
|
||||
@Column(name = "INDMANTTARJETA")
|
||||
private Boolean indmanttarjeta;
|
||||
@Column(name = "FOLIOTARJETAVIAJE")
|
||||
private String folioTarjeta;
|
||||
@Column(name = "PLATAFORMA")
|
||||
private String plataforma;
|
||||
|
||||
public Boolean getIndmanttarjeta() {
|
||||
return indmanttarjeta;
|
||||
}
|
||||
public Boolean getIndmanttarjeta() {
|
||||
return indmanttarjeta;
|
||||
}
|
||||
|
||||
public void setIndmanttarjeta(Boolean indmanttarjeta) {
|
||||
this.indmanttarjeta = indmanttarjeta;
|
||||
}
|
||||
public void setIndmanttarjeta(Boolean indmanttarjeta) {
|
||||
this.indmanttarjeta = indmanttarjeta;
|
||||
}
|
||||
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
|
||||
public CorridaTramo() {
|
||||
}
|
||||
public CorridaTramo() {
|
||||
}
|
||||
|
||||
public CorridaTramo(Integer corridatramoId) {
|
||||
this.corridatramoId = corridatramoId;
|
||||
}
|
||||
public CorridaTramo(Integer corridatramoId) {
|
||||
this.corridatramoId = corridatramoId;
|
||||
}
|
||||
|
||||
public Date getFechorSalidaOriginal() {
|
||||
return fechorSalidaOriginal;
|
||||
}
|
||||
public Date getFechorSalidaOriginal() {
|
||||
return fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public void setFechorSalidaOriginal(Date fechorSalidaOriginal) {
|
||||
if (fechorSalidaOriginal != null) {
|
||||
fechorSalidaOriginal = DateUtil.normalizar(fechorSalidaOriginal);
|
||||
}
|
||||
this.fechorSalidaOriginal = fechorSalidaOriginal;
|
||||
}
|
||||
public void setFechorSalidaOriginal(Date fechorSalidaOriginal) {
|
||||
if (fechorSalidaOriginal != null) {
|
||||
fechorSalidaOriginal = DateUtil.normalizar(fechorSalidaOriginal);
|
||||
}
|
||||
this.fechorSalidaOriginal = fechorSalidaOriginal;
|
||||
}
|
||||
|
||||
public Integer getCorridatramoId() {
|
||||
return corridatramoId;
|
||||
}
|
||||
public Integer getCorridatramoId() {
|
||||
return corridatramoId;
|
||||
}
|
||||
|
||||
public void setCorridatramoId(Integer corridatramoId) {
|
||||
this.corridatramoId = corridatramoId;
|
||||
}
|
||||
public void setCorridatramoId(Integer corridatramoId) {
|
||||
this.corridatramoId = corridatramoId;
|
||||
}
|
||||
|
||||
public Corrida getCorrida() {
|
||||
return corrida;
|
||||
}
|
||||
public Corrida getCorrida() {
|
||||
return corrida;
|
||||
}
|
||||
|
||||
public void setCorrida(Corrida corrida) {
|
||||
this.corrida = corrida;
|
||||
}
|
||||
public void setCorrida(Corrida corrida) {
|
||||
this.corrida = corrida;
|
||||
}
|
||||
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
|
||||
public Date getFechorsalida() {
|
||||
return fechorsalida;
|
||||
}
|
||||
public Date getFechorsalida() {
|
||||
return fechorsalida;
|
||||
}
|
||||
|
||||
public void setFechorsalida(Date fechorsalida) {
|
||||
if (fechorsalida != null) {
|
||||
fechorsalida = DateUtil.normalizar(fechorsalida);
|
||||
}
|
||||
this.fechorsalida = fechorsalida;
|
||||
}
|
||||
public void setFechorsalida(Date fechorsalida) {
|
||||
if (fechorsalida != null) {
|
||||
fechorsalida = DateUtil.normalizar(fechorsalida);
|
||||
}
|
||||
this.fechorsalida = fechorsalida;
|
||||
}
|
||||
|
||||
public Date getFechorllegada() {
|
||||
return fechorllegada;
|
||||
}
|
||||
public Date getFechorllegada() {
|
||||
return fechorllegada;
|
||||
}
|
||||
|
||||
public void setFechorllegada(Date fechorllegada) {
|
||||
if (fechorllegada != null) {
|
||||
fechorllegada = DateUtil.normalizar(fechorllegada);
|
||||
}
|
||||
this.fechorllegada = fechorllegada;
|
||||
}
|
||||
public void setFechorllegada(Date fechorllegada) {
|
||||
if (fechorllegada != null) {
|
||||
fechorllegada = DateUtil.normalizar(fechorllegada);
|
||||
}
|
||||
this.fechorllegada = fechorllegada;
|
||||
}
|
||||
|
||||
public Date getFechortarjetaviaje() {
|
||||
return fechortarjetaviaje;
|
||||
}
|
||||
public Date getFechortarjetaviaje() {
|
||||
return fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public void setFechortarjetaviaje(Date fechortarjetaviaje) {
|
||||
this.fechortarjetaviaje = fechortarjetaviaje;
|
||||
}
|
||||
public void setFechortarjetaviaje(Date fechortarjetaviaje) {
|
||||
this.fechortarjetaviaje = fechortarjetaviaje;
|
||||
}
|
||||
|
||||
public Integer getUsuariotarjetaviajeId() {
|
||||
return usuariotarjetaviajeId;
|
||||
}
|
||||
public Integer getUsuariotarjetaviajeId() {
|
||||
return usuariotarjetaviajeId;
|
||||
}
|
||||
|
||||
public void setUsuariotarjetaviajeId(Integer usuariotarjetaviajeId) {
|
||||
this.usuariotarjetaviajeId = usuariotarjetaviajeId;
|
||||
}
|
||||
public void setUsuariotarjetaviajeId(Integer usuariotarjetaviajeId) {
|
||||
this.usuariotarjetaviajeId = usuariotarjetaviajeId;
|
||||
}
|
||||
|
||||
public Short getNumsecorigen() {
|
||||
return numsecorigen;
|
||||
}
|
||||
public Short getNumsecorigen() {
|
||||
return numsecorigen;
|
||||
}
|
||||
|
||||
public void setNumsecorigen(Short numsecorigen) {
|
||||
this.numsecorigen = numsecorigen;
|
||||
}
|
||||
public void setNumsecorigen(Short numsecorigen) {
|
||||
this.numsecorigen = numsecorigen;
|
||||
}
|
||||
|
||||
public Short getNumsecdestino() {
|
||||
return numsecdestino;
|
||||
}
|
||||
public Short getNumsecdestino() {
|
||||
return numsecdestino;
|
||||
}
|
||||
|
||||
public void setNumsecdestino(Short numsecdestino) {
|
||||
this.numsecdestino = numsecdestino;
|
||||
}
|
||||
public void setNumsecdestino(Short numsecdestino) {
|
||||
this.numsecdestino = numsecdestino;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public com.rjconsultores.ventaboletos.entidad.Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
public com.rjconsultores.ventaboletos.entidad.Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
|
||||
public void setDestino(com.rjconsultores.ventaboletos.entidad.Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
public void setDestino(com.rjconsultores.ventaboletos.entidad.Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
|
||||
public com.rjconsultores.ventaboletos.entidad.Parada getOrigem() {
|
||||
return origem;
|
||||
}
|
||||
public com.rjconsultores.ventaboletos.entidad.Parada getOrigem() {
|
||||
return origem;
|
||||
}
|
||||
|
||||
public void setOrigem(com.rjconsultores.ventaboletos.entidad.Parada origem) {
|
||||
this.origem = origem;
|
||||
}
|
||||
public void setOrigem(com.rjconsultores.ventaboletos.entidad.Parada origem) {
|
||||
this.origem = origem;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Tramo getTramo() {
|
||||
return tramo;
|
||||
}
|
||||
public Tramo getTramo() {
|
||||
return tramo;
|
||||
}
|
||||
|
||||
public void setTramo(Tramo tramo) {
|
||||
this.tramo = tramo;
|
||||
}
|
||||
public void setTramo(Tramo tramo) {
|
||||
this.tramo = tramo;
|
||||
}
|
||||
|
||||
public Nodo getNodo() {
|
||||
return nodo;
|
||||
}
|
||||
public Nodo getNodo() {
|
||||
return nodo;
|
||||
}
|
||||
|
||||
public void setNodo(Nodo nodo) {
|
||||
this.nodo = nodo;
|
||||
}
|
||||
public void setNodo(Nodo nodo) {
|
||||
this.nodo = nodo;
|
||||
}
|
||||
|
||||
public Conductor getConductor() {
|
||||
return conductor;
|
||||
}
|
||||
public Conductor getConductor() {
|
||||
return conductor;
|
||||
}
|
||||
|
||||
public void setConductor(Conductor conductor) {
|
||||
this.conductor = conductor;
|
||||
}
|
||||
public void setConductor(Conductor conductor) {
|
||||
this.conductor = conductor;
|
||||
}
|
||||
|
||||
public Conductor getConductor1() {
|
||||
return conductor1;
|
||||
}
|
||||
public Conductor getConductor1() {
|
||||
return conductor1;
|
||||
}
|
||||
|
||||
public void setConductor1(Conductor conductor1) {
|
||||
this.conductor1 = conductor1;
|
||||
}
|
||||
public void setConductor1(Conductor conductor1) {
|
||||
this.conductor1 = conductor1;
|
||||
}
|
||||
|
||||
public Autobus getAutobus() {
|
||||
return autobus;
|
||||
}
|
||||
public Autobus getAutobus() {
|
||||
return autobus;
|
||||
}
|
||||
|
||||
public void setAutobus(Autobus autobus) {
|
||||
this.autobus = autobus;
|
||||
}
|
||||
public void setAutobus(Autobus autobus) {
|
||||
this.autobus = autobus;
|
||||
}
|
||||
|
||||
public String getFolioTarjeta() {
|
||||
return folioTarjeta;
|
||||
}
|
||||
public String getFolioTarjeta() {
|
||||
return folioTarjeta;
|
||||
}
|
||||
|
||||
public void setFolioTarjeta(String folioTarjeta) {
|
||||
this.folioTarjeta = folioTarjeta;
|
||||
}
|
||||
public void setFolioTarjeta(String folioTarjeta) {
|
||||
this.folioTarjeta = folioTarjeta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (corridatramoId != null ? corridatramoId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
public String getPlataforma() {
|
||||
return plataforma;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||
if (!(object instanceof CorridaTramo)) {
|
||||
return false;
|
||||
}
|
||||
CorridaTramo other = (CorridaTramo) object;
|
||||
if ((this.corridatramoId == null && other.corridatramoId != null) || (this.corridatramoId != null && !this.corridatramoId.equals(other.corridatramoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public void setPlataforma(String plataforma) {
|
||||
this.plataforma = plataforma;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.CorridaTramo[corridatramoId=" + corridatramoId + "]";
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (corridatramoId != null ? corridatramoId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are
|
||||
// not set
|
||||
if (!(object instanceof CorridaTramo)) {
|
||||
return false;
|
||||
}
|
||||
CorridaTramo other = (CorridaTramo) object;
|
||||
if ((this.corridatramoId == null && other.corridatramoId != null) || (this.corridatramoId != null && !this.corridatramoId.equals(other.corridatramoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.CorridaTramo[corridatramoId=" + corridatramoId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,372 +33,373 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "ESQUEMA_CORRIDA")
|
||||
public class EsquemaCorrida implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMACORRIDA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
||||
private Integer esquemacorridaId;
|
||||
@Column(name = "HORASALIDA")
|
||||
@Temporal(TemporalType.TIME)
|
||||
private Date horasalida;
|
||||
@Column(name = "INDPISOEXTRA")
|
||||
private Boolean pisoExtra;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Integer cantparados;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
||||
private Integer diagramaAutobusId;
|
||||
@Column(name = "STATUSCORRIDA")
|
||||
private String statusCorrida;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo;
|
||||
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo2;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private EsquemaOperacional esquemaOperacional;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio2;
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaTramo> esquemaTramoList;
|
||||
@OneToMany
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaAsiento> esquemaAsientoList;
|
||||
@Column(name = "tipocorrida")
|
||||
private String tipocorrida;
|
||||
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorridaRebote;
|
||||
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
|
||||
public String getTipocorrida() {
|
||||
return tipocorrida;
|
||||
}
|
||||
|
||||
public void setTipocorrida(String tipocorrida) {
|
||||
this.tipocorrida = tipocorrida;
|
||||
}
|
||||
|
||||
public EsquemaCorrida() {
|
||||
}
|
||||
|
||||
public EsquemaCorrida(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Integer getEsquemacorridaId() {
|
||||
return esquemacorridaId;
|
||||
}
|
||||
|
||||
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Date getHorasalida() {
|
||||
return horasalida;
|
||||
}
|
||||
|
||||
public void setHorasalida(Date horasalida) {
|
||||
this.horasalida = horasalida;
|
||||
}
|
||||
|
||||
public Integer getCantparados() {
|
||||
return cantparados;
|
||||
}
|
||||
|
||||
public void setCantparados(Integer cantparados) {
|
||||
this.cantparados = cantparados;
|
||||
}
|
||||
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMACORRIDA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
||||
private Integer esquemacorridaId;
|
||||
@Column(name = "HORASALIDA")
|
||||
@Temporal(TemporalType.TIME)
|
||||
private Date horasalida;
|
||||
@Column(name = "INDPISOEXTRA")
|
||||
private Boolean pisoExtra;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Integer cantparados;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
||||
private Integer diagramaAutobusId;
|
||||
@Column(name = "STATUSCORRIDA")
|
||||
private String statusCorrida;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo;
|
||||
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo2;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private EsquemaOperacional esquemaOperacional;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio2;
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaTramo> esquemaTramoList;
|
||||
@OneToMany
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaAsiento> esquemaAsientoList;
|
||||
@Column(name = "tipocorrida")
|
||||
private String tipocorrida;
|
||||
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorridaRebote;
|
||||
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
|
||||
public String getTipocorrida() {
|
||||
return tipocorrida;
|
||||
}
|
||||
|
||||
public void setTipocorrida(String tipocorrida) {
|
||||
this.tipocorrida = tipocorrida;
|
||||
}
|
||||
|
||||
public EsquemaCorrida() {
|
||||
}
|
||||
|
||||
public EsquemaCorrida(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Integer getEsquemacorridaId() {
|
||||
return esquemacorridaId;
|
||||
}
|
||||
|
||||
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Date getHorasalida() {
|
||||
return horasalida;
|
||||
}
|
||||
|
||||
public void setHorasalida(Date horasalida) {
|
||||
this.horasalida = horasalida;
|
||||
}
|
||||
|
||||
public Integer getCantparados() {
|
||||
return cantparados;
|
||||
}
|
||||
|
||||
public void setCantparados(Integer cantparados) {
|
||||
this.cantparados = cantparados;
|
||||
}
|
||||
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public EsquemaOperacional getEsquemaOperacional() {
|
||||
return esquemaOperacional;
|
||||
}
|
||||
|
||||
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
||||
this.esquemaOperacional = esquemaOperacional;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public String getStatusCorrida() {
|
||||
return statusCorrida;
|
||||
}
|
||||
|
||||
public void setStatusCorrida(String statusCorrida) {
|
||||
this.statusCorrida = statusCorrida;
|
||||
}
|
||||
|
||||
public Integer getDiagramaAutobusId() {
|
||||
return diagramaAutobusId;
|
||||
}
|
||||
|
||||
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
||||
this.diagramaAutobusId = diagramaAutobusId;
|
||||
}
|
||||
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
|
||||
public Boolean getPisoExtra() {
|
||||
return pisoExtra;
|
||||
}
|
||||
|
||||
public void setPisoExtra(Boolean pisoExtra) {
|
||||
this.pisoExtra = pisoExtra;
|
||||
}
|
||||
|
||||
public List<EsquemaTramo> getEsquemaTramoList() {
|
||||
if (this.esquemaTramoList != null) {
|
||||
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
||||
|
||||
for (EsquemaTramo ec : this.esquemaTramoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
||||
this.esquemaTramoList = esquemaTramoList;
|
||||
}
|
||||
|
||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
|
||||
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
||||
this.esquemaAsientoList = esquemaAsientoList;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorridaRebote() {
|
||||
return esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
||||
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio2() {
|
||||
return claseServicio2;
|
||||
}
|
||||
|
||||
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
||||
this.claseServicio2 = claseServicio2;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo2() {
|
||||
return rolOperativo2;
|
||||
}
|
||||
|
||||
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
||||
this.rolOperativo2 = rolOperativo2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||
if (!(object instanceof EsquemaCorrida)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaCorrida other = (EsquemaCorrida) object;
|
||||
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
||||
}
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public EsquemaOperacional getEsquemaOperacional() {
|
||||
return esquemaOperacional;
|
||||
}
|
||||
|
||||
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
||||
this.esquemaOperacional = esquemaOperacional;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public String getStatusCorrida() {
|
||||
return statusCorrida;
|
||||
}
|
||||
|
||||
public void setStatusCorrida(String statusCorrida) {
|
||||
this.statusCorrida = statusCorrida;
|
||||
}
|
||||
|
||||
public Integer getDiagramaAutobusId() {
|
||||
return diagramaAutobusId;
|
||||
}
|
||||
|
||||
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
||||
this.diagramaAutobusId = diagramaAutobusId;
|
||||
}
|
||||
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
|
||||
public Boolean getPisoExtra() {
|
||||
return pisoExtra;
|
||||
}
|
||||
|
||||
public void setPisoExtra(Boolean pisoExtra) {
|
||||
this.pisoExtra = pisoExtra;
|
||||
}
|
||||
|
||||
public List<EsquemaTramo> getEsquemaTramoList() {
|
||||
if (this.esquemaTramoList != null) {
|
||||
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
||||
|
||||
for (EsquemaTramo ec : this.esquemaTramoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
||||
this.esquemaTramoList = esquemaTramoList;
|
||||
}
|
||||
|
||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
|
||||
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
||||
this.esquemaAsientoList = esquemaAsientoList;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorridaRebote() {
|
||||
return esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
||||
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio2() {
|
||||
return claseServicio2;
|
||||
}
|
||||
|
||||
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
||||
this.claseServicio2 = claseServicio2;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo2() {
|
||||
return rolOperativo2;
|
||||
}
|
||||
|
||||
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
||||
this.rolOperativo2 = rolOperativo2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are
|
||||
// not set
|
||||
if (!(object instanceof EsquemaCorrida)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaCorrida other = (EsquemaCorrida) object;
|
||||
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,124 +28,135 @@ import javax.persistence.SequenceGenerator;
|
|||
@Table(name = "ESQUEMA_TRAMO")
|
||||
public class EsquemaTramo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMATRAMO_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_TRAMO_SEQ")
|
||||
private Integer esquematramoId;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "TIEMPOESTANCIA")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date tiempoEstancia;
|
||||
@JoinColumn(name = "TRAMO_ID", referencedColumnName = "TRAMO_ID")
|
||||
@ManyToOne
|
||||
private Tramo tramo;
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMATRAMO_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_TRAMO_SEQ")
|
||||
private Integer esquematramoId;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "TIEMPOESTANCIA")
|
||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||
private Date tiempoEstancia;
|
||||
@JoinColumn(name = "TRAMO_ID", referencedColumnName = "TRAMO_ID")
|
||||
@ManyToOne
|
||||
private Tramo tramo;
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorrida;
|
||||
@Column(name = "PLATAFORMA")
|
||||
private String plataforma;
|
||||
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
|
||||
public EsquemaTramo() {
|
||||
}
|
||||
public EsquemaTramo() {
|
||||
}
|
||||
|
||||
public EsquemaTramo(Integer esquematramoId) {
|
||||
this.esquematramoId = esquematramoId;
|
||||
}
|
||||
public EsquemaTramo(Integer esquematramoId) {
|
||||
this.esquematramoId = esquematramoId;
|
||||
}
|
||||
|
||||
public Integer getEsquematramoId() {
|
||||
return esquematramoId;
|
||||
}
|
||||
public Integer getEsquematramoId() {
|
||||
return esquematramoId;
|
||||
}
|
||||
|
||||
public void setEsquematramoId(Integer esquematramoId) {
|
||||
this.esquematramoId = esquematramoId;
|
||||
}
|
||||
public void setEsquematramoId(Integer esquematramoId) {
|
||||
this.esquematramoId = esquematramoId;
|
||||
}
|
||||
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Tramo getTramo() {
|
||||
return tramo;
|
||||
}
|
||||
public Tramo getTramo() {
|
||||
return tramo;
|
||||
}
|
||||
|
||||
public void setTramo(Tramo tramo) {
|
||||
this.tramo = tramo;
|
||||
}
|
||||
public void setTramo(Tramo tramo) {
|
||||
this.tramo = tramo;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorrida() {
|
||||
return esquemaCorrida;
|
||||
}
|
||||
public EsquemaCorrida getEsquemaCorrida() {
|
||||
return esquemaCorrida;
|
||||
}
|
||||
|
||||
public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||
this.esquemaCorrida = esquemaCorrida;
|
||||
}
|
||||
public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||
this.esquemaCorrida = esquemaCorrida;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquematramoId != null ? esquematramoId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
public String getPlataforma() {
|
||||
return plataforma;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||
if (!(object instanceof EsquemaTramo)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaTramo other = (EsquemaTramo) object;
|
||||
if ((this.esquematramoId == null && other.esquematramoId != null) || (this.esquematramoId != null && !this.esquematramoId.equals(other.esquematramoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public void setPlataforma(String plataforma) {
|
||||
this.plataforma = plataforma;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaTramo[esquematramoId=" + esquematramoId + "]";
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquematramoId != null ? esquematramoId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are
|
||||
// not set
|
||||
if (!(object instanceof EsquemaTramo)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaTramo other = (EsquemaTramo) object;
|
||||
if ((this.esquematramoId == null && other.esquematramoId != null) || (this.esquematramoId != null && !this.esquematramoId.equals(other.esquematramoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaTramo[esquematramoId=" + esquematramoId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,31 +17,32 @@ import javax.persistence.OneToOne;
|
|||
@Embeddable
|
||||
public class MarcaClaseServicioPK implements Serializable {
|
||||
|
||||
@Basic(optional = false)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "CLASESERVICIO_ID")
|
||||
private ClaseServicio claseservicio;
|
||||
@Basic(optional = false)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "MARCA_ID")
|
||||
private Marca marca;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Basic(optional = false)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "CLASESERVICIO_ID")
|
||||
private ClaseServicio claseservicio;
|
||||
@Basic(optional = false)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "MARCA_ID")
|
||||
private Marca marca;
|
||||
|
||||
public MarcaClaseServicioPK() {
|
||||
}
|
||||
public MarcaClaseServicioPK() {
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseservicio() {
|
||||
return claseservicio;
|
||||
}
|
||||
public ClaseServicio getClaseservicio() {
|
||||
return claseservicio;
|
||||
}
|
||||
|
||||
public void setClaseservicio(ClaseServicio claseservicio) {
|
||||
this.claseservicio = claseservicio;
|
||||
}
|
||||
public void setClaseservicio(ClaseServicio claseservicio) {
|
||||
this.claseservicio = claseservicio;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,43 +12,52 @@ import java.util.Date;
|
|||
*/
|
||||
public class ParadaEsquema {
|
||||
|
||||
private Short numsecuencia;
|
||||
private Date tiempoEstancia;
|
||||
private Parada parada;
|
||||
private Boolean activo;
|
||||
private Short numsecuencia;
|
||||
private Date tiempoEstancia;
|
||||
private Parada parada;
|
||||
private Boolean activo;
|
||||
private String plataforma;
|
||||
|
||||
public ParadaEsquema() {
|
||||
}
|
||||
public ParadaEsquema() {
|
||||
}
|
||||
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
|
||||
public Parada getParada() {
|
||||
return parada;
|
||||
}
|
||||
public Parada getParada() {
|
||||
return parada;
|
||||
}
|
||||
|
||||
public void setParada(Parada parada) {
|
||||
this.parada = parada;
|
||||
}
|
||||
public void setParada(Parada parada) {
|
||||
this.parada = parada;
|
||||
}
|
||||
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
public Date getTiempoEstancia() {
|
||||
return tiempoEstancia;
|
||||
}
|
||||
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
public void setTiempoEstancia(Date tiempoEstancia) {
|
||||
this.tiempoEstancia = tiempoEstancia;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public String getPlataforma() {
|
||||
return plataforma;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setPlataforma(String plataforma) {
|
||||
this.plataforma = plataforma;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -413,6 +413,7 @@ public class CorridaServiceImpl implements CorridaService {
|
|||
corridaTramo.setAutobus(null);
|
||||
corridaTramo.setConductor(null);
|
||||
corridaTramo.setConductor1(null);
|
||||
corridaTramo.setPlataforma(esquemaTramo.getPlataforma());
|
||||
|
||||
corridaTramo.setTiempoEstancia(esquemaTramo.getTiempoEstancia());
|
||||
|
||||
|
@ -465,7 +466,7 @@ public class CorridaServiceImpl implements CorridaService {
|
|||
corrida.setFecmodif(Calendar.getInstance().getTime());
|
||||
if (UsuarioLogado.getUsuarioLogado() != null) {
|
||||
corrida.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
}else{
|
||||
} else {
|
||||
corrida.setUsuarioId(1);
|
||||
}
|
||||
corrida.setIndTipoVenta(null);
|
||||
|
@ -738,7 +739,7 @@ public class CorridaServiceImpl implements CorridaService {
|
|||
return dataAte;
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true, propagation=Propagation.SUPPORTS)
|
||||
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
|
||||
public boolean generarCorridaAutomatica() {
|
||||
|
||||
// Date dataDe = new GregorianCalendar(2012, 4, 25).getTime();
|
||||
|
|
|
@ -134,6 +134,7 @@ public class EsquemaCorridaServiceImpl implements EsquemaCorridaService {
|
|||
et.setTiempoEstancia(listParadaEsquema.get(i + 1).getTiempoEstancia());
|
||||
et.setTramo(t);
|
||||
et.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
et.setPlataforma(listParadaEsquema.get(i).getPlataforma());
|
||||
|
||||
esquemaTramoDAO.suscribir(et);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue