rodrigo 2012-09-28 17:26:20 +00:00
parent ce4f9e08a7
commit c77eeef053
22 changed files with 1202 additions and 1200 deletions

View File

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

View File

@ -14,5 +14,6 @@ import java.util.Map;
*/
public interface GenericDAOInforme {
@SuppressWarnings("rawtypes")
public ResultSet executarSQL(Connection conn, Map parameters);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -41,6 +41,7 @@ public class Corrida implements Serializable {
@Embeddable
public static class Id implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "CORRIDA_ID")
private Integer corridaId;
@Column(name = "FECCORRIDA")
@ -72,6 +73,7 @@ public class Corrida implements Serializable {
return corridaId + " Hora:" + sf.format(feccorrida);
}
}
@EmbeddedId
private Id id = new Id();
@Column(name = "FECHORSALIDA")
@ -166,7 +168,6 @@ public class Corrida implements Serializable {
@Column(name = "NUMPISO")
private Integer numPiso;
public String getIndTipoVenta() {
return indTipoVenta;
}
@ -426,7 +427,6 @@ public class Corrida implements Serializable {
this.division = division;
}
public Corrida getCorridaPiso() {
return corridaPiso;
}

View File

@ -45,8 +45,7 @@ public class CorridaTramo implements Serializable {
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumns({
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID"),
@JoinColumn(name = "FECCORRIDA", referencedColumnName = "FECCORRIDA")
})
@JoinColumn(name = "FECCORRIDA", referencedColumnName = "FECCORRIDA") })
private Corrida corrida;
@Column(name = "NUMSECUENCIA")
private Short numsecuencia;
@ -103,6 +102,8 @@ public class CorridaTramo implements Serializable {
private Boolean indmanttarjeta;
@Column(name = "FOLIOTARJETAVIAJE")
private String folioTarjeta;
@Column(name = "PLATAFORMA")
private String plataforma;
public Boolean getIndmanttarjeta() {
return indmanttarjeta;
@ -304,6 +305,14 @@ public class CorridaTramo implements Serializable {
this.folioTarjeta = folioTarjeta;
}
public String getPlataforma() {
return plataforma;
}
public void setPlataforma(String plataforma) {
this.plataforma = plataforma;
}
@Override
public int hashCode() {
int hash = 0;
@ -313,7 +322,8 @@ public class CorridaTramo implements Serializable {
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof CorridaTramo)) {
return false;
}

View File

@ -386,7 +386,8 @@ public class EsquemaCorrida implements Serializable {
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EsquemaCorrida)) {
return false;
}

View File

@ -52,6 +52,8 @@ public class EsquemaTramo implements Serializable {
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
@ManyToOne
private EsquemaCorrida esquemaCorrida;
@Column(name = "PLATAFORMA")
private String plataforma;
public Date getTiempoEstancia() {
return tiempoEstancia;
@ -124,6 +126,14 @@ public class EsquemaTramo implements Serializable {
this.esquemaCorrida = esquemaCorrida;
}
public String getPlataforma() {
return plataforma;
}
public void setPlataforma(String plataforma) {
this.plataforma = plataforma;
}
@Override
public int hashCode() {
int hash = 0;
@ -133,7 +143,8 @@ public class EsquemaTramo implements Serializable {
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EsquemaTramo)) {
return false;
}

View File

@ -17,6 +17,7 @@ import javax.persistence.OneToOne;
@Embeddable
public class MarcaClaseServicioPK implements Serializable {
private static final long serialVersionUID = 1L;
@Basic(optional = false)
@OneToOne
@JoinColumn(name = "CLASESERVICIO_ID")

View File

@ -16,6 +16,7 @@ public class ParadaEsquema {
private Date tiempoEstancia;
private Parada parada;
private Boolean activo;
private String plataforma;
public ParadaEsquema() {
}
@ -44,6 +45,14 @@ public class ParadaEsquema {
this.tiempoEstancia = tiempoEstancia;
}
public String getPlataforma() {
return plataforma;
}
public void setPlataforma(String plataforma) {
this.plataforma = plataforma;
}
public Boolean getActivo() {
return activo;
}

View File

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

View File

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