fixes bug#9052
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@69410 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c37bdc4abd
commit
91bd825f60
|
@ -0,0 +1,12 @@
|
||||||
|
package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
public interface EsquemaCorridaEmbarqueDesembarqueDAO extends GenericDAO<EsquemaCorridaEmbarqueDesembarque, Integer> {
|
||||||
|
|
||||||
|
List<EsquemaCorridaEmbarqueDesembarque> obtenerPorEsquemaCorrida(EsquemaCorrida esquemaCorrida);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
public interface RutaEmbarqueDesembarqueDAO extends GenericDAO<RutaEmbarqueDesembarque, Integer> {
|
||||||
|
|
||||||
|
List<RutaEmbarqueDesembarque> obtenerPorRuta(Ruta ruta);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.dao.EsquemaCorridaEmbarqueDesembarqueDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
@Repository("esquemaCorridaEmbarqueDesembarqueHibernateDAO")
|
||||||
|
public class EsquemaCorridaEmbarqueDesembarqueHibernateDAO extends GenericHibernateDAO<EsquemaCorridaEmbarqueDesembarque, Integer> implements EsquemaCorridaEmbarqueDesembarqueDAO {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public EsquemaCorridaEmbarqueDesembarqueHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
setSessionFactory(factory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public List<EsquemaCorridaEmbarqueDesembarque> obtenerPorEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||||
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
c.add(Restrictions.eq("esquemaCorrida", esquemaCorrida));
|
||||||
|
return c.list();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.dao.RutaEmbarqueDesembarqueDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
@Repository("rutaEmbarqueDesembarqueHibernateDAO")
|
||||||
|
public class RutaEmbarqueDesembarqueHibernateDAO extends GenericHibernateDAO<RutaEmbarqueDesembarque, Integer> implements RutaEmbarqueDesembarqueDAO {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public RutaEmbarqueDesembarqueHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
setSessionFactory(factory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public List<RutaEmbarqueDesembarque> obtenerPorRuta(Ruta ruta) {
|
||||||
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
c.add(Restrictions.eq("ruta", ruta));
|
||||||
|
return c.list();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -128,6 +128,8 @@ public class EsquemaCorrida implements Serializable {
|
||||||
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
private Autobus autoBus;
|
private Autobus autoBus;
|
||||||
|
@OneToMany(mappedBy = "esquemaCorrida", cascade = CascadeType.ALL)
|
||||||
|
private List<EsquemaCorridaEmbarqueDesembarque> lsEsquemaCorridaEmbarqueDesembarque;
|
||||||
|
|
||||||
public enum GerarFeriado {
|
public enum GerarFeriado {
|
||||||
// Declaração dos enum
|
// Declaração dos enum
|
||||||
|
@ -607,4 +609,12 @@ public class EsquemaCorrida implements Serializable {
|
||||||
this.autoBus = autoBus;
|
this.autoBus = autoBus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<EsquemaCorridaEmbarqueDesembarque> getLsEsquemaCorridaEmbarqueDesembarque() {
|
||||||
|
return lsEsquemaCorridaEmbarqueDesembarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEsquemaCorridaEmbarqueDesembarque(List<EsquemaCorridaEmbarqueDesembarque> lsEsquemaCorridaEmbarqueDesembarque) {
|
||||||
|
this.lsEsquemaCorridaEmbarqueDesembarque = lsEsquemaCorridaEmbarqueDesembarque;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -0,0 +1,118 @@
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "ESQUEMA_CORRIDA_EMB_DESEM_SEQ", sequenceName = "ESQUEMA_CORRIDA_EMB_DESEM_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "ESQUEMA_CORRIDA_EMBRQ_DESEMBRQ")
|
||||||
|
public class EsquemaCorridaEmbarqueDesembarque implements java.io.Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -6308295160991190414L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_EMB_DESEM_SEQ")
|
||||||
|
@Column(name = "ESQUEMACORRIDAEMBRQDESEMBRQ_ID", unique = true, nullable = false, precision = 7, scale = 0)
|
||||||
|
private Integer esquemaCorridaEmbarqueDesembarqueId;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "ESQUEMACORRIDA_ID", nullable = false)
|
||||||
|
private EsquemaCorrida esquemaCorrida;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "PARADA_ID", nullable = false)
|
||||||
|
private Parada parada;
|
||||||
|
|
||||||
|
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||||
|
private Boolean activo;
|
||||||
|
|
||||||
|
@Temporal(TemporalType.DATE)
|
||||||
|
@Column(name = "FECMODIF", length = 7)
|
||||||
|
private Date fecmodif;
|
||||||
|
|
||||||
|
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||||
|
private Integer usuarioId;
|
||||||
|
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque(Integer esquemacorridaembrqdesembrqId, EsquemaCorrida esquemaCorrida,
|
||||||
|
Parada parada) {
|
||||||
|
this.esquemaCorridaEmbarqueDesembarqueId = esquemacorridaembrqdesembrqId;
|
||||||
|
this.esquemaCorrida = esquemaCorrida;
|
||||||
|
this.parada = parada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque(Integer esquemacorridaembrqdesembrqId, EsquemaCorrida esquemaCorrida, Parada parada,
|
||||||
|
Boolean activo, Date fecmodif, Integer usuarioId) {
|
||||||
|
this.esquemaCorridaEmbarqueDesembarqueId = esquemacorridaembrqdesembrqId;
|
||||||
|
this.esquemaCorrida = esquemaCorrida;
|
||||||
|
this.parada = parada;
|
||||||
|
this.activo = activo;
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEsquemaCorridaEmbarqueDesembarqueId() {
|
||||||
|
return this.esquemaCorridaEmbarqueDesembarqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsquemaCorridaEmbarqueDesembarqueId(Integer esquemaCorridaEmbarqueDesembarqueId) {
|
||||||
|
this.esquemaCorridaEmbarqueDesembarqueId = esquemaCorridaEmbarqueDesembarqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EsquemaCorrida getEsquemaCorrida() {
|
||||||
|
return this.esquemaCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||||
|
this.esquemaCorrida = esquemaCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parada getParada() {
|
||||||
|
return this.parada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParada(Parada parada) {
|
||||||
|
this.parada = parada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getActivo() {
|
||||||
|
return this.activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo(Boolean activo) {
|
||||||
|
this.activo = activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmodif() {
|
||||||
|
return this.fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmodif(Date fecmodif) {
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return this.usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -126,6 +126,9 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
||||||
@Column(name = "INDRUTAINTERNACIONAL")
|
@Column(name = "INDRUTAINTERNACIONAL")
|
||||||
private Boolean indRutaInternacional;
|
private Boolean indRutaInternacional;
|
||||||
|
|
||||||
|
@OneToMany(mappedBy = "ruta", cascade = CascadeType.ALL)
|
||||||
|
private List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
private Boolean isClone;
|
private Boolean isClone;
|
||||||
|
|
||||||
|
@ -520,4 +523,12 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
||||||
this.indRutaInternacional = indRutaInternacional;
|
this.indRutaInternacional = indRutaInternacional;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<RutaEmbarqueDesembarque> getLsRutaEmbarqueDesembarque() {
|
||||||
|
return lsRutaEmbarqueDesembarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsRutaEmbarqueDesembarque(List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque) {
|
||||||
|
this.lsRutaEmbarqueDesembarque = lsRutaEmbarqueDesembarque;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -0,0 +1,116 @@
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "RUTA_EMBRQ_DESEMBRQ_SEQ", sequenceName = "RUTA_EMBRQ_DESEMBRQ_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "RUTA_EMBRQ_DESEMBRQ")
|
||||||
|
public class RutaEmbarqueDesembarque implements java.io.Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -8321526713959603226L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "RUTA_EMBRQ_DESEMBRQ_SEQ")
|
||||||
|
@Column(name = "RUTAEMBRQDESEMBRQ_ID", unique = true, nullable = false, precision = 7, scale = 0)
|
||||||
|
private Integer rutaEmbarqueDesembarqueId;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.EAGER)
|
||||||
|
@JoinColumn(name = "PARADA_ID", nullable = false)
|
||||||
|
private Parada parada;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.EAGER)
|
||||||
|
@JoinColumn(name = "RUTA_ID", nullable = false)
|
||||||
|
private Ruta ruta;
|
||||||
|
|
||||||
|
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||||
|
private Boolean activo;
|
||||||
|
|
||||||
|
@Temporal(TemporalType.DATE)
|
||||||
|
@Column(name = "FECMODIF", length = 7)
|
||||||
|
private Date fecmodif;
|
||||||
|
|
||||||
|
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||||
|
private Integer usuarioId;
|
||||||
|
|
||||||
|
public RutaEmbarqueDesembarque() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public RutaEmbarqueDesembarque(Integer rutaEmbarqueDesembarqueId, Parada parada, Ruta ruta) {
|
||||||
|
this.rutaEmbarqueDesembarqueId = rutaEmbarqueDesembarqueId;
|
||||||
|
this.parada = parada;
|
||||||
|
this.ruta = ruta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RutaEmbarqueDesembarque(Integer rutaEmbarqueDesembarqueId, Parada parada, Ruta ruta, Boolean activo, Date fecmodif,
|
||||||
|
Integer usuarioId) {
|
||||||
|
this.rutaEmbarqueDesembarqueId = rutaEmbarqueDesembarqueId;
|
||||||
|
this.parada = parada;
|
||||||
|
this.ruta = ruta;
|
||||||
|
this.activo = activo;
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRutaEmbarqueDesembarqueId() {
|
||||||
|
return this.rutaEmbarqueDesembarqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRutaEmbarqueDesembarqueId(Integer rutaEmbarqueDesembarqueId) {
|
||||||
|
this.rutaEmbarqueDesembarqueId = rutaEmbarqueDesembarqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parada getParada() {
|
||||||
|
return this.parada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParada(Parada parada) {
|
||||||
|
this.parada = parada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Ruta getRuta() {
|
||||||
|
return this.ruta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRuta(Ruta ruta) {
|
||||||
|
this.ruta = ruta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getActivo() {
|
||||||
|
return this.activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo(Boolean activo) {
|
||||||
|
this.activo = activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmodif() {
|
||||||
|
return this.fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmodif(Date fecmodif) {
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return this.usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
public interface EsquemaCorridaEmbarqueDesembarqueService extends GenericService<EsquemaCorridaEmbarqueDesembarque, Integer> {
|
||||||
|
|
||||||
|
List<EsquemaCorridaEmbarqueDesembarque> obtenerPorEsquemaCorrida(EsquemaCorrida esquemaCorrida);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
public interface RutaEmbarqueDesembarqueService extends GenericService<RutaEmbarqueDesembarque, Integer> {
|
||||||
|
|
||||||
|
List<RutaEmbarqueDesembarque> obtenerPorRuta(Ruta ruta);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.rjconsultores.ventaboletos.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.dao.EsquemaCorridaEmbarqueDesembarqueDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaCorridaEmbarqueDesembarque;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EsquemaCorridaEmbarqueDesembarqueService;
|
||||||
|
|
||||||
|
@Service("esquemaCorridaEmbarqueDesembarqueService")
|
||||||
|
public class EsquemaCorridaEmbarqueDesembarqueServiceImpl implements EsquemaCorridaEmbarqueDesembarqueService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EsquemaCorridaEmbarqueDesembarqueDAO esquemaCorridaEmbarqueDesembarqueDAO;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<EsquemaCorridaEmbarqueDesembarque> obtenerTodos() {
|
||||||
|
return esquemaCorridaEmbarqueDesembarqueDAO.obtenerTodos();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque obtenerID(Integer id) {
|
||||||
|
return esquemaCorridaEmbarqueDesembarqueDAO.obtenerID(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque suscribir(EsquemaCorridaEmbarqueDesembarque entidad) {
|
||||||
|
return esquemaCorridaEmbarqueDesembarqueDAO.suscribir(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public EsquemaCorridaEmbarqueDesembarque actualizacion(EsquemaCorridaEmbarqueDesembarque entidad) {
|
||||||
|
return esquemaCorridaEmbarqueDesembarqueDAO.actualizacion(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public void borrar(EsquemaCorridaEmbarqueDesembarque entidad) {
|
||||||
|
esquemaCorridaEmbarqueDesembarqueDAO.borrar(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<EsquemaCorridaEmbarqueDesembarque> obtenerPorEsquemaCorrida(EsquemaCorrida esquemaCorrida) {
|
||||||
|
return esquemaCorridaEmbarqueDesembarqueDAO.obtenerPorEsquemaCorrida(esquemaCorrida);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.rjconsultores.ventaboletos.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.dao.RutaEmbarqueDesembarqueDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque;
|
||||||
|
import com.rjconsultores.ventaboletos.service.RutaEmbarqueDesembarqueService;
|
||||||
|
|
||||||
|
@Service("rutaEmbarqueDesembarqueService")
|
||||||
|
public class RutaEmbarqueDesembarqueServiceImpl implements RutaEmbarqueDesembarqueService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RutaEmbarqueDesembarqueDAO rutaEmbarqueDesembarqueDAO;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RutaEmbarqueDesembarque> obtenerTodos() {
|
||||||
|
return rutaEmbarqueDesembarqueDAO.obtenerTodos();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RutaEmbarqueDesembarque obtenerID(Integer id) {
|
||||||
|
return rutaEmbarqueDesembarqueDAO.obtenerID(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public RutaEmbarqueDesembarque suscribir(RutaEmbarqueDesembarque entidad) {
|
||||||
|
return rutaEmbarqueDesembarqueDAO.suscribir(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public RutaEmbarqueDesembarque actualizacion(RutaEmbarqueDesembarque entidad) {
|
||||||
|
return rutaEmbarqueDesembarqueDAO.actualizacion(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public void borrar(RutaEmbarqueDesembarque entidad) {
|
||||||
|
rutaEmbarqueDesembarqueDAO.borrar(entidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RutaEmbarqueDesembarque> obtenerPorRuta(Ruta ruta) {
|
||||||
|
return rutaEmbarqueDesembarqueDAO.obtenerPorRuta(ruta);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue