git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@32261 d1611594-4594-4d17-8e1d-87c2c4800839
parent
b9cdce22ff
commit
7557b965fa
|
@ -0,0 +1,28 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
|
||||
public interface AbastoCentralDAO extends GenericDAO<AbastoCentral, Long> {
|
||||
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetes(Aidf aidf, PuntoVenta origem);
|
||||
public List<AbastoCentral> obtenerBilhetes(Aidf aidf, String formInicial, String formFinal, PuntoVenta origem);
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(PuntoVenta puntoVentaBilhetes);
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(PuntoVenta puntoVentaBilhetes, Estacion origem);
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(String formInicial, String formFinal, PuntoVenta puntoVentaBilhetes);
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(String formInicial, String formFinal, PuntoVenta puntoVentaBilhetes, Estacion origem);
|
||||
|
||||
public void actualizaBilhetes(List<AbastoCentral> bilhetes, PuntoVenta destino);
|
||||
public void actualizaBilhetes(List<AbastoCentral> bilhetes, Estacion destino);
|
||||
public void suscribirBilhetes(List<AbastoCentral> bilhetes);
|
||||
public List<AbastoCentral> buscaBilhetesPorAidf(Aidf aidf);
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
|
||||
public interface AbastoHistoDAO extends GenericDAO<AbastoHisto, Long> {
|
||||
|
||||
public void grabaHistoricoBilhetes(List<AbastoCentral> bilhetes, TipoMovimentacion tipoMovimentacion);
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
||||
public interface AidfDAO extends GenericDAO<Aidf, Long> {
|
||||
|
||||
public List<Aidf> buscaAidfsPorEmpresas(List<Empresa> empresas);
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||
|
||||
public interface AidfEspecieDAO extends GenericDAO<AidfEspecie, Integer> {
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||
|
||||
public interface AidfTipoDAO extends GenericDAO<AidfTipo, Integer> {
|
||||
|
||||
}
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.dao;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -27,4 +29,8 @@ public interface EstacionDAO extends GenericDAO<Estacion, Integer> {
|
|||
* @return
|
||||
*/
|
||||
public List<Estacion> buscar(Long numCaja,PuntoVenta puntoVenta);
|
||||
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaEstacionPorUsuario(Usuario usuario);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
|
||||
public interface PtovtaTipoEstoqueDAO extends GenericDAO<PtovtaTipoEstoque, Integer> {
|
||||
|
||||
public PtovtaTipoEstoque buscarTipoSuprimento();
|
||||
public PtovtaTipoEstoque buscarTipoContabilidade();
|
||||
public PtovtaTipoEstoque buscarTipoNormal();
|
||||
|
||||
}
|
|
@ -4,8 +4,12 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -23,4 +27,8 @@ public interface PuntoVentaDAO extends GenericDAO<PuntoVenta, Integer> {
|
|||
public List<PuntoVenta> buscaPuntoVentaParada(Parada parada);
|
||||
|
||||
public List<PuntoVenta> buscarPuntoVentaSubordinados(PuntoVenta puntoVenta);
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaMovimentacionBilhetes(List<Empresa> empresas);
|
||||
|
||||
public List<PuntoVenta> buscarPuntoVentaPorTipoEstoque(PtovtaTipoEstoque tipoEstoque);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
|
||||
public interface TipoMovimentacionDAO extends GenericDAO<TipoMovimentacion, Integer> {
|
||||
|
||||
public TipoMovimentacion buscarTipoMovimentacio(int tipoMovimentacion);
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacionPuntoVenta();
|
||||
|
||||
}
|
|
@ -4,9 +4,11 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -15,4 +17,5 @@ import java.util.List;
|
|||
public interface UsuarioUbicacionDAO extends GenericDAO<UsuarioUbicacion, Integer> {
|
||||
|
||||
public List<UsuarioUbicacion> buscarPorUsuario(Usuario usuario);
|
||||
public List<PuntoVenta> buscarPuntoVentaPorUsuario(Usuario usuario);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,165 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Session;
|
||||
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 org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.AbastoCentralDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
|
||||
@Repository("abastoCentralDAO")
|
||||
public class AbastoCentralHibernateDAO extends GenericHibernateDAO<AbastoCentral, Long> implements AbastoCentralDAO {
|
||||
|
||||
@Autowired
|
||||
public AbastoCentralHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
public List<AbastoCentral> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetes(Aidf aidf, PuntoVenta origem) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("aidf", aidf));
|
||||
c.add(Restrictions.eq("puntoventa", origem));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetes(Aidf aidf, String formInicial, String formFinal, PuntoVenta origem) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("aidf", aidf));
|
||||
c.add(Restrictions.eq("puntoventa", origem));
|
||||
c.add(Restrictions.between("numfoliopreimpreso", formInicial, formFinal));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void actualizaBilhetes(List<AbastoCentral> bilhetes, PuntoVenta destino) {
|
||||
|
||||
Session session = getSessionFactory().getCurrentSession();
|
||||
|
||||
int count = 0;
|
||||
|
||||
for(AbastoCentral bilhete : bilhetes){
|
||||
bilhete.setPuntoventa(destino);
|
||||
session.update(bilhete);
|
||||
|
||||
if(++count % 20 == 0){
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
||||
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void suscribirBilhetes(List<AbastoCentral> bilhetes) {
|
||||
Session session = getSessionFactory().getCurrentSession();
|
||||
|
||||
int count = 0;
|
||||
|
||||
for(AbastoCentral bilhete : bilhetes){
|
||||
|
||||
session.save(bilhete);
|
||||
|
||||
if(++count % 20 == 0){
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
||||
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
|
||||
public List<AbastoCentral> buscaBilhetesPorAidf(Aidf aidf) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("aidf", aidf));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(PuntoVenta puntoVentaBilhetes) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("puntoventa", puntoVentaBilhetes));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(String formInicial, String formFinal, PuntoVenta puntoVentaBilhetes) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("puntoventa", puntoVentaBilhetes));
|
||||
c.add(Restrictions.between("numfoliopreimpreso", formInicial, formFinal));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(PuntoVenta puntoVentaBilhetes, Estacion origem) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("puntoventa", puntoVentaBilhetes));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("estacion", origem));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
public List<AbastoCentral> obtenerBilhetesPorPuntoVenta(String formInicial, String formFinal, PuntoVenta puntoVentaBilhetes, Estacion origem) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("puntoventa", puntoVentaBilhetes));
|
||||
c.add(Restrictions.between("numfoliopreimpreso", formInicial, formFinal));
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
if(origem != null)
|
||||
c.add(Restrictions.eq("estacion", origem));
|
||||
|
||||
return (List<AbastoCentral>)c.list();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void actualizaBilhetes(List<AbastoCentral> bilhetes, Estacion destino) {
|
||||
|
||||
Session session = getSessionFactory().getCurrentSession();
|
||||
|
||||
int count = 0;
|
||||
|
||||
for(AbastoCentral bilhete : bilhetes){
|
||||
bilhete.setEstacion(destino);
|
||||
session.update(bilhete);
|
||||
|
||||
if(++count % 20 == 0){
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
||||
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Session;
|
||||
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.AbastoHistoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Repository("abastoHistoDAO")
|
||||
public class AbastoHistoHibernateDAO extends GenericHibernateDAO<AbastoHisto, Long> implements AbastoHistoDAO {
|
||||
|
||||
@Autowired
|
||||
public AbastoHistoHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AbastoHisto> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AbastoHisto>)c.list();
|
||||
}
|
||||
|
||||
public void grabaHistoricoBilhetes(List<AbastoCentral> bilhetes, TipoMovimentacion tipoMovimentacion) {
|
||||
Session session = getSessionFactory().getCurrentSession();
|
||||
|
||||
int count = 0;
|
||||
|
||||
for(AbastoCentral bilhete : bilhetes){
|
||||
|
||||
Date dataActual = Calendar.getInstance().getTime();
|
||||
AbastoHisto nuevoHistorico = new AbastoHisto(bilhete, tipoMovimentacion, dataActual, true, dataActual, UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
||||
session.save(nuevoHistorico);
|
||||
|
||||
if(++count % 20 == 0){
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
||||
|
||||
session.flush();
|
||||
session.clear();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
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.AidfEspecieDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||
|
||||
@Repository("aidfEspecieDAO")
|
||||
public class AidfEspecieHibernateDAO extends GenericHibernateDAO<AidfEspecie, Integer> implements AidfEspecieDAO{
|
||||
|
||||
@Autowired
|
||||
public AidfEspecieHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AidfEspecie> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AidfEspecie>)c.list();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
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.AidfDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
||||
@Repository("aidfDAO")
|
||||
public class AidfHibernateDAO extends GenericHibernateDAO<Aidf, Long> implements AidfDAO{
|
||||
|
||||
@Autowired
|
||||
public AidfHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Aidf> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<Aidf>)c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Aidf> buscaAidfsPorEmpresas(List<Empresa> empresas) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.in("empresa", empresas));
|
||||
|
||||
return (List<Aidf>)c.list();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
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.AidfTipoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||
|
||||
@Repository("aidfTipoDAO")
|
||||
public class AidfTipoHibernateDAO extends GenericHibernateDAO<AidfTipo, Integer> implements AidfTipoDAO {
|
||||
|
||||
@Autowired
|
||||
public AidfTipoHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AidfTipo> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<AidfTipo>)c.list();
|
||||
}
|
||||
|
||||
}
|
|
@ -7,10 +7,15 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
|||
import com.rjconsultores.ventaboletos.dao.EstacionDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
import java.util.List;
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.DetachedCriteria;
|
||||
import org.hibernate.criterion.Order;
|
||||
import org.hibernate.criterion.Projections;
|
||||
import org.hibernate.criterion.Property;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
@ -66,4 +71,25 @@ public class EstacionHibernateDAO extends GenericHibernateDAO<Estacion, Integer>
|
|||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("puntoVenta", puntoVenta));
|
||||
c.addOrder(Order.asc("descestacion"));
|
||||
c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PuntoVenta> buscarPuntosVentaEstacionPorUsuario(Usuario usuario) {
|
||||
Criteria buscaPuntoVentasUsuario = getSession().createCriteria(getPersistentClass())
|
||||
.setProjection(Projections.distinct(Property.forName("puntoVenta")))
|
||||
.add(Restrictions.eq("activo", Boolean.TRUE))
|
||||
.add(Restrictions.eq("usuarioId", usuario.getUsuarioId()));
|
||||
|
||||
return buscaPuntoVentasUsuario.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
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.PtovtaTipoEstoqueDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
|
||||
@Repository("ptovtaTipoEstoqueDAO")
|
||||
public class PtovtaTipoEstoqueHibernateDAO extends GenericHibernateDAO<PtovtaTipoEstoque, Integer> implements PtovtaTipoEstoqueDAO {
|
||||
|
||||
@Autowired
|
||||
public PtovtaTipoEstoqueHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PtovtaTipoEstoque buscarTipoSuprimento() {
|
||||
PtovtaTipoEstoque tipo = buscarTipo(PtovtaTipoEstoque.TIPO_SUMINISTRO);
|
||||
return tipo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PtovtaTipoEstoque buscarTipoContabilidade() {
|
||||
PtovtaTipoEstoque tipo = buscarTipo(PtovtaTipoEstoque.TIPO_CONTABILIDAD);
|
||||
return tipo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PtovtaTipoEstoque buscarTipoNormal() {
|
||||
PtovtaTipoEstoque tipo = buscarTipo(PtovtaTipoEstoque.TIPO_NORMAL);
|
||||
return tipo;
|
||||
}
|
||||
|
||||
private PtovtaTipoEstoque buscarTipo(int tipo) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("ptovtatipoestId", tipo));
|
||||
|
||||
return (PtovtaTipoEstoque) c.uniqueResult();
|
||||
}
|
||||
|
||||
}
|
|
@ -4,19 +4,27 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.hibernate.criterion.Order;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Criterion;
|
||||
import org.hibernate.criterion.MatchMode;
|
||||
import org.hibernate.criterion.Order;
|
||||
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.PtovtaTipoEstoqueDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
|
@ -25,6 +33,10 @@ import org.springframework.stereotype.Repository;
|
|||
public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Integer>
|
||||
implements PuntoVentaDAO {
|
||||
|
||||
@Autowired
|
||||
private PtovtaTipoEstoqueDAO ptovtaTipoEstoqueDAO;
|
||||
|
||||
|
||||
@Autowired
|
||||
public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
|
@ -83,4 +95,79 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PuntoVenta> buscarPuntosVentaMovimentacionBilhetes(List<Empresa> empresas) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
|
||||
Criterion crtPtovta =
|
||||
Restrictions.and(Restrictions.eq("activo", Boolean.TRUE), Restrictions.in("empresa", empresas));
|
||||
|
||||
PtovtaTipoEstoque supr = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
||||
PtovtaTipoEstoque cont = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
||||
|
||||
Criterion suprCont = Restrictions.in("ptovtaTipoEstoque", new PtovtaTipoEstoque[]{ supr, cont});
|
||||
|
||||
c.add(Restrictions.or(suprCont, crtPtovta));
|
||||
|
||||
c.addOrder(Order.asc("nombpuntoventa"));
|
||||
List<PuntoVenta> puntosVenta = c.list();
|
||||
|
||||
// List<PuntoVenta> puntosVenta = geraListaDummy();
|
||||
|
||||
return puntosVenta;
|
||||
}
|
||||
|
||||
public List<PuntoVenta> buscarPuntoVentaPorTipoEstoque(PtovtaTipoEstoque tipoEstoque) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("ptovtaTipoEstoque", tipoEstoque));
|
||||
|
||||
List<PuntoVenta> puntosVenta = c.list();
|
||||
|
||||
return puntosVenta;
|
||||
}
|
||||
|
||||
private List<PuntoVenta> geraListaDummy(){
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
|
||||
PtovtaTipoEstoque supr = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
||||
PtovtaTipoEstoque cont = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
||||
|
||||
Criterion suprCont = Restrictions.in("ptovtaTipoEstoque", new PtovtaTipoEstoque[]{ supr, cont});
|
||||
|
||||
Criterion crtPtovta = Restrictions.in("puntoventaId", new Integer[]{1,2,3,786,1321,1722});
|
||||
|
||||
c.add(Restrictions.or(suprCont, crtPtovta));
|
||||
List<PuntoVenta> puntosVenta = c.list();
|
||||
|
||||
// PuntoVenta pv1 = new PuntoVenta(Integer.valueOf(1));
|
||||
// pv1.setNombpuntoventa("pv1");
|
||||
//
|
||||
// PuntoVenta pv2 = new PuntoVenta(Integer.valueOf(2));
|
||||
// pv2.setNombpuntoventa("pv2");
|
||||
//
|
||||
// PuntoVenta pv3 = new PuntoVenta(Integer.valueOf(3));
|
||||
// pv3.setNombpuntoventa("pv3");
|
||||
//
|
||||
// PuntoVenta pv4 = new PuntoVenta(Integer.valueOf(786));
|
||||
// pv4.setNombpuntoventa("pv4");
|
||||
//
|
||||
// PuntoVenta pv5 = new PuntoVenta(Integer.valueOf(1321));
|
||||
// pv5.setNombpuntoventa("pv5");
|
||||
//
|
||||
// PuntoVenta pv6 = new PuntoVenta(Integer.valueOf(1722));
|
||||
// pv6.setNombpuntoventa("SUPRIMENTO");
|
||||
//
|
||||
// List<PuntoVenta> puntosVenta = new ArrayList<PuntoVenta>();
|
||||
// puntosVenta.add(pv6);
|
||||
// puntosVenta.add(pv1);
|
||||
// puntosVenta.add(pv2);
|
||||
// puntosVenta.add(pv3);
|
||||
// puntosVenta.add(pv4);
|
||||
// puntosVenta.add(pv5);
|
||||
|
||||
return puntosVenta;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
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.TipoMovimentacionDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
|
||||
@Repository("tipoMovimentacionDAO")
|
||||
public class TipoMovimentacionHibernateDAO extends GenericHibernateDAO<TipoMovimentacion, Integer> implements TipoMovimentacionDAO {
|
||||
|
||||
@Autowired
|
||||
public TipoMovimentacionHibernateDAO(
|
||||
@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TipoMovimentacion> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return (List<TipoMovimentacion>)c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TipoMovimentacion buscarTipoMovimentacio(int tipoMovimentacion) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("tipomovimentacionId", tipoMovimentacion));
|
||||
|
||||
return (TipoMovimentacion) c.uniqueResult();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacionPuntoVenta() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.in("tipomovimentacionId", new Integer[]{TipoMovimentacion.TIPO_ENVIO, TipoMovimentacion.TIPO_TRANSFERENCIA, TipoMovimentacion.TIPO_VOLVER}));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -5,11 +5,14 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.UsuarioUbicacionDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion;
|
||||
import java.util.List;
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Order;
|
||||
import org.hibernate.criterion.Property;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
@ -35,4 +38,16 @@ public class UsuarioUbicacionHibernateDAO extends GenericHibernateDAO<UsuarioUbi
|
|||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PuntoVenta> buscarPuntoVentaPorUsuario(Usuario usuario) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("usuario", usuario));
|
||||
c.setProjection(Property.forName("puntoVenta"));
|
||||
c.createAlias("puntoVenta", "ptovta");
|
||||
c.addOrder(Order.asc("ptovta.nombpuntoventa"));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,150 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* AbastoCentral generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "ABASTO_CENTRAL")
|
||||
public class AbastoCentral implements java.io.Serializable {
|
||||
|
||||
private Long abastocentralId;
|
||||
private Aidf aidf;
|
||||
private String numseriepreimpresa;
|
||||
private String numfoliopreimpreso;
|
||||
private String numsubseriepreimpreso;
|
||||
private PuntoVenta puntoventa;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
private Estacion estacion;
|
||||
|
||||
public AbastoCentral() {
|
||||
}
|
||||
|
||||
public AbastoCentral(Aidf _aidf, String _numseriepreimpresa, String _numfoliopreimpreso, String _numsubseriepreimpreso,
|
||||
PuntoVenta _puntoventa, Boolean _activo, Date _fecmodif, Integer _usuarioId) {
|
||||
aidf = _aidf;
|
||||
numseriepreimpresa = _numseriepreimpresa;
|
||||
numfoliopreimpreso = _numfoliopreimpreso;
|
||||
numsubseriepreimpreso = _numsubseriepreimpreso;
|
||||
puntoventa = _puntoventa;
|
||||
activo = _activo;
|
||||
fecmodif = _fecmodif;
|
||||
usuarioId = _usuarioId;
|
||||
}
|
||||
|
||||
@SequenceGenerator(name = "ABASTO_HISTO_SEQ", sequenceName = "ABASTO_HISTO_SEQ", allocationSize = 1)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ABASTO_HISTO_SEQ")
|
||||
@Column(name = "ABASTOCENTRAL_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
public Long getAbastocentralId() {
|
||||
return this.abastocentralId;
|
||||
}
|
||||
|
||||
public void setAbastocentralId(Long abastocentralId) {
|
||||
this.abastocentralId = abastocentralId;
|
||||
}
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "AIDF_ID")
|
||||
public Aidf getAidf() {
|
||||
return this.aidf;
|
||||
}
|
||||
|
||||
public void setAidf(Aidf aidf) {
|
||||
this.aidf = aidf;
|
||||
}
|
||||
|
||||
@Column(name = "NUMSERIEPREIMPRESA", length = 10)
|
||||
public String getNumseriepreimpresa() {
|
||||
return this.numseriepreimpresa;
|
||||
}
|
||||
|
||||
public void setNumseriepreimpresa(String numseriepreimpresa) {
|
||||
this.numseriepreimpresa = numseriepreimpresa;
|
||||
}
|
||||
|
||||
@Column(name = "NUMFOLIOPREIMPRESO", length = 12)
|
||||
public String getNumfoliopreimpreso() {
|
||||
return this.numfoliopreimpreso;
|
||||
}
|
||||
|
||||
public void setNumfoliopreimpreso(String numfoliopreimpreso) {
|
||||
this.numfoliopreimpreso = numfoliopreimpreso;
|
||||
}
|
||||
|
||||
@Column(name = "NUMSUBSERIEPREIMPRESO", length = 10)
|
||||
public String getNumsubseriepreimpreso() {
|
||||
return this.numsubseriepreimpreso;
|
||||
}
|
||||
|
||||
public void setNumsubseriepreimpreso(String numsubseriepreimpreso) {
|
||||
this.numsubseriepreimpreso = numsubseriepreimpreso;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
public PuntoVenta getPuntoventa() {
|
||||
return this.puntoventa;
|
||||
}
|
||||
|
||||
public void setPuntoventa(PuntoVenta puntoventa) {
|
||||
this.puntoventa = puntoventa;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return this.usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "ESTACION_ID")
|
||||
public Estacion getEstacion() {
|
||||
return estacion;
|
||||
}
|
||||
|
||||
public void setEstacion(Estacion estacion) {
|
||||
this.estacion = estacion;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* AbastoHisto generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "ABASTO_HISTO")
|
||||
public class AbastoHisto implements java.io.Serializable {
|
||||
|
||||
private Long abastohistoId;
|
||||
private TipoMovimentacion tipoMovimentacion;
|
||||
private Aidf aidf;
|
||||
private String numseriepreimpresa;
|
||||
private String numfoliopreimpreso;
|
||||
private String numsubseriepreimpreso;
|
||||
private Date fechorhisto;
|
||||
private PuntoVenta puntoventa;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
private Estacion estacion;
|
||||
|
||||
public AbastoHisto() {
|
||||
}
|
||||
|
||||
public AbastoHisto(AbastoCentral bilhete, TipoMovimentacion _tipoMovimentacion, Date _fechorhisto, Boolean _activo, Date _fecmodif, Integer _usuarioId) {
|
||||
tipoMovimentacion = _tipoMovimentacion;
|
||||
aidf = bilhete.getAidf();
|
||||
numseriepreimpresa = bilhete.getNumseriepreimpresa();
|
||||
numfoliopreimpreso = bilhete.getNumfoliopreimpreso();
|
||||
numsubseriepreimpreso = bilhete.getNumsubseriepreimpreso();
|
||||
estacion = bilhete.getEstacion();
|
||||
fechorhisto = _fechorhisto;
|
||||
puntoventa = bilhete.getPuntoventa();
|
||||
activo = _activo;
|
||||
fecmodif = _fecmodif;
|
||||
usuarioId = _usuarioId;
|
||||
}
|
||||
|
||||
public AbastoHisto(TipoMovimentacion _tipoMovimentacion, Aidf _aidf, String _numseriepreimpresa, String _numfoliopreimpreso,
|
||||
String _numsubseriepreimpreso, Date _fechorhisto, PuntoVenta _puntoventa, Boolean _activo, Date _fecmodif, Integer _usuarioId, Estacion _estacion) {
|
||||
tipoMovimentacion = _tipoMovimentacion;
|
||||
aidf = _aidf;
|
||||
numseriepreimpresa = _numseriepreimpresa;
|
||||
numfoliopreimpreso = _numfoliopreimpreso;
|
||||
numsubseriepreimpreso = _numsubseriepreimpreso;
|
||||
fechorhisto = _fechorhisto;
|
||||
puntoventa = _puntoventa;
|
||||
activo = _activo;
|
||||
fecmodif = _fecmodif;
|
||||
usuarioId = _usuarioId;
|
||||
estacion = _estacion;
|
||||
}
|
||||
|
||||
@SequenceGenerator(name = "ABASTO_HISTO_SEQ", sequenceName = "ABASTO_HISTO_SEQ", allocationSize = 1)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ABASTO_HISTO_SEQ")
|
||||
@Column(name = "ABASTOHISTO_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
public Long getAbastohistoId() {
|
||||
return this.abastohistoId;
|
||||
}
|
||||
|
||||
public void setAbastohistoId(Long abastohistoId) {
|
||||
this.abastohistoId = abastohistoId;
|
||||
}
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "TIPOMOVIMENTACION_ID")
|
||||
public TipoMovimentacion getTipoMovimentacion() {
|
||||
return this.tipoMovimentacion;
|
||||
}
|
||||
|
||||
public void setTipoMovimentacion(TipoMovimentacion tipoMovimentacion) {
|
||||
this.tipoMovimentacion = tipoMovimentacion;
|
||||
}
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "AIDF_ID")
|
||||
public Aidf getAidf() {
|
||||
return this.aidf;
|
||||
}
|
||||
|
||||
public void setAidf(Aidf aidf) {
|
||||
this.aidf = aidf;
|
||||
}
|
||||
|
||||
@Column(name = "NUMSERIEPREIMPRESA", length = 10)
|
||||
public String getNumseriepreimpresa() {
|
||||
return this.numseriepreimpresa;
|
||||
}
|
||||
|
||||
public void setNumseriepreimpresa(String numseriepreimpresa) {
|
||||
this.numseriepreimpresa = numseriepreimpresa;
|
||||
}
|
||||
|
||||
@Column(name = "NUMFOLIOPREIMPRESO", length = 12)
|
||||
public String getNumfoliopreimpreso() {
|
||||
return this.numfoliopreimpreso;
|
||||
}
|
||||
|
||||
public void setNumfoliopreimpreso(String numfoliopreimpreso) {
|
||||
this.numfoliopreimpreso = numfoliopreimpreso;
|
||||
}
|
||||
|
||||
@Column(name = "NUMSUBSERIEPREIMPRESO", length = 10)
|
||||
public String getNumsubseriepreimpreso() {
|
||||
return this.numsubseriepreimpreso;
|
||||
}
|
||||
|
||||
public void setNumsubseriepreimpreso(String numsubseriepreimpreso) {
|
||||
this.numsubseriepreimpreso = numsubseriepreimpreso;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECHORHISTO", length = 7)
|
||||
public Date getFechorhisto() {
|
||||
return this.fechorhisto;
|
||||
}
|
||||
|
||||
public void setFechorhisto(Date fechorhisto) {
|
||||
this.fechorhisto = fechorhisto;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
public PuntoVenta getPuntoventa() {
|
||||
return this.puntoventa;
|
||||
}
|
||||
|
||||
public void setPuntoventa(PuntoVenta puntoventa) {
|
||||
this.puntoventa = puntoventa;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return this.usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "ESTACION_ID")
|
||||
public Estacion getEstacion() {
|
||||
return estacion;
|
||||
}
|
||||
|
||||
public void setEstacion(Estacion estacion) {
|
||||
this.estacion = estacion;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,259 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Aidf generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "AIDF")
|
||||
public class Aidf implements java.io.Serializable {
|
||||
|
||||
private Long aidfId;
|
||||
private AidfTipo aidfTipo;
|
||||
private AidfEspecie aidfEspecie;
|
||||
private Estado estado;
|
||||
private String docfiscal;
|
||||
private String acfiscal;
|
||||
private String serie;
|
||||
private String subserie;
|
||||
private String forminicial;
|
||||
private String formfinal;
|
||||
private Date fecadquisicion;
|
||||
private Date fecvencimiento;
|
||||
private String inscestadual;
|
||||
private Empresa empresa;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
|
||||
public Aidf() {
|
||||
}
|
||||
|
||||
public Aidf(AidfTipo _aidfTipo, AidfEspecie _aidfEspecie, Estado _estado, String _docfiscal, String _acfiscal,
|
||||
String _serie, String _subserie, String _forminicial, String _formfinal, Date _fecadquisicion, Date _fecvencimiento,
|
||||
String _inscestadual, Empresa _empresa, Boolean _activo, Date _fecmodif, Integer _usuarioId) {
|
||||
aidfTipo = _aidfTipo;
|
||||
aidfEspecie = _aidfEspecie;
|
||||
estado = _estado;
|
||||
docfiscal = _docfiscal;
|
||||
acfiscal = _acfiscal;
|
||||
serie = _serie;
|
||||
subserie = _subserie;
|
||||
forminicial = _forminicial;
|
||||
formfinal = _formfinal;
|
||||
fecadquisicion = _fecadquisicion;
|
||||
fecvencimiento = _fecvencimiento;
|
||||
inscestadual = _inscestadual;
|
||||
empresa = _empresa;
|
||||
activo = _activo;
|
||||
fecmodif = _fecmodif;
|
||||
usuarioId = _usuarioId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("%s - %s", docfiscal, acfiscal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (aidfId != null ? aidfId.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 Aidf))
|
||||
return false;
|
||||
|
||||
Aidf other = (Aidf) object;
|
||||
if ((this.aidfId == null && other.aidfId != null) || (this.aidfId != null && !this.aidfId.equals(other.aidfId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@SequenceGenerator(name = "AIDF_SEQ", sequenceName = "AIDF_SEQ", allocationSize = 1)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "AIDF_SEQ")
|
||||
@Column(name = "AIDF_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
public Long getAidfId() {
|
||||
return aidfId;
|
||||
}
|
||||
|
||||
public void setAidfId(Long _aidfId) {
|
||||
aidfId = _aidfId;
|
||||
}
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "AIDFTIPO_ID")
|
||||
public AidfTipo getAidfTipo() {
|
||||
return aidfTipo;
|
||||
}
|
||||
|
||||
public void setAidfTipo(AidfTipo _aidfTipo) {
|
||||
aidfTipo = _aidfTipo;
|
||||
}
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "AIDFESP_ID")
|
||||
public AidfEspecie getAidfEspecie() {
|
||||
return aidfEspecie;
|
||||
}
|
||||
|
||||
public void setAidfEspecie(AidfEspecie _aidfEspecie) {
|
||||
aidfEspecie = _aidfEspecie;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "ESTADO_ID")
|
||||
@ManyToOne
|
||||
public Estado getEstado() {
|
||||
return estado;
|
||||
}
|
||||
|
||||
public void setEstado(Estado _estado) {
|
||||
estado = _estado;
|
||||
}
|
||||
|
||||
@Column(name = "DOCFISCAL", length = 20)
|
||||
public String getDocfiscal() {
|
||||
return docfiscal;
|
||||
}
|
||||
|
||||
public void setDocfiscal(String _docfiscal) {
|
||||
docfiscal = _docfiscal;
|
||||
}
|
||||
|
||||
@Column(name = "ACFISCAL", length = 20)
|
||||
public String getAcfiscal() {
|
||||
return acfiscal;
|
||||
}
|
||||
|
||||
public void setAcfiscal(String _acfiscal) {
|
||||
acfiscal = _acfiscal;
|
||||
}
|
||||
|
||||
@Column(name = "SERIE", length = 20)
|
||||
public String getSerie() {
|
||||
return serie;
|
||||
}
|
||||
|
||||
public void setSerie(String _serie) {
|
||||
serie = _serie;
|
||||
}
|
||||
|
||||
@Column(name = "SUBSERIE", length = 20)
|
||||
public String getSubserie() {
|
||||
return subserie;
|
||||
}
|
||||
|
||||
public void setSubserie(String _subserie) {
|
||||
subserie = _subserie;
|
||||
}
|
||||
|
||||
@Column(name = "FORMINICIAL", length = 12)
|
||||
public String getForminicial() {
|
||||
return forminicial;
|
||||
}
|
||||
|
||||
public void setForminicial(String _forminicial) {
|
||||
forminicial = _forminicial;
|
||||
}
|
||||
|
||||
@Column(name = "FORMFINAL", length = 12)
|
||||
public String getFormfinal() {
|
||||
return formfinal;
|
||||
}
|
||||
|
||||
public void setFormfinal(String _formfinal) {
|
||||
formfinal = _formfinal;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECADQUISICION", length = 7)
|
||||
public Date getFecadquisicion() {
|
||||
return fecadquisicion;
|
||||
}
|
||||
|
||||
public void setFecadquisicion(Date _fecadquisicion) {
|
||||
fecadquisicion = _fecadquisicion;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECVENCIMIENTO", length = 7)
|
||||
public Date getFecvencimiento() {
|
||||
return fecvencimiento;
|
||||
}
|
||||
|
||||
public void setFecvencimiento(Date _fecvencimiento) {
|
||||
fecvencimiento = _fecvencimiento;
|
||||
}
|
||||
|
||||
@Column(name = "INSCESTADUAL", length = 20)
|
||||
public String getInscestadual() {
|
||||
return inscestadual;
|
||||
}
|
||||
|
||||
public void setInscestadual(String _inscestadual) {
|
||||
inscestadual = _inscestadual;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa _empresa) {
|
||||
empresa = _empresa;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean _activo) {
|
||||
activo = _activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date _fecmodif) {
|
||||
fecmodif = _fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer _usuarioId) {
|
||||
usuarioId = _usuarioId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* AidfEspecie generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "AIDF_ESPECIE")
|
||||
public class AidfEspecie implements java.io.Serializable {
|
||||
|
||||
private Integer aidfespId;
|
||||
private String decespecie;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
|
||||
public AidfEspecie() {
|
||||
}
|
||||
|
||||
public AidfEspecie(Integer aidfespId) {
|
||||
this.aidfespId = aidfespId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return decespecie;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (aidfespId != null ? aidfespId.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 AidfEspecie))
|
||||
return false;
|
||||
|
||||
AidfEspecie other = (AidfEspecie) object;
|
||||
if ((this.aidfespId == null && other.aidfespId != null) || (this.aidfespId != null && !this.aidfespId.equals(other.aidfespId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public AidfEspecie(Integer aidfespId, String decespecie, Boolean activo, Date fecmodif, Integer usuarioId) {
|
||||
this.aidfespId = aidfespId;
|
||||
this.decespecie = decespecie;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Id
|
||||
@Column(name = "AIDFESP_ID", unique = true, nullable = false, precision = 4, scale = 0)
|
||||
public Integer getAidfespId() {
|
||||
return this.aidfespId;
|
||||
}
|
||||
|
||||
public void setAidfespId(Integer aidfespId) {
|
||||
this.aidfespId = aidfespId;
|
||||
}
|
||||
|
||||
@Column(name = "DECESPECIE", length = 20)
|
||||
public String getDecespecie() {
|
||||
return this.decespecie;
|
||||
}
|
||||
|
||||
public void setDecespecie(String decespecie) {
|
||||
this.decespecie = decespecie;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return this.usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* AidfTipo generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "AIDF_TIPO")
|
||||
public class AidfTipo implements java.io.Serializable {
|
||||
|
||||
private Integer aidftipoId;
|
||||
private String desctipo;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
|
||||
public AidfTipo() {
|
||||
}
|
||||
|
||||
public AidfTipo(Integer aidftipoId) {
|
||||
this.aidftipoId = aidftipoId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return desctipo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (aidftipoId != null ? aidftipoId.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 AidfTipo))
|
||||
return false;
|
||||
|
||||
AidfTipo other = (AidfTipo) object;
|
||||
if ((this.aidftipoId == null && other.aidftipoId != null) || (this.aidftipoId != null && !this.aidftipoId.equals(other.aidftipoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public AidfTipo(Integer aidftipoId, String desctipo, Boolean activo, Date fecmodif, Integer usuarioId) {
|
||||
this.aidftipoId = aidftipoId;
|
||||
this.desctipo = desctipo;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Id
|
||||
@Column(name = "AIDFTIPO_ID", unique = true, nullable = false, precision = 4, scale = 0)
|
||||
public Integer getAidftipoId() {
|
||||
return this.aidftipoId;
|
||||
}
|
||||
|
||||
public void setAidftipoId(Integer aidftipoId) {
|
||||
this.aidftipoId = aidftipoId;
|
||||
}
|
||||
|
||||
@Column(name = "DESCTIPO", length = 20)
|
||||
public String getDesctipo() {
|
||||
return this.desctipo;
|
||||
}
|
||||
|
||||
public void setDesctipo(String desctipo) {
|
||||
this.desctipo = desctipo;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return this.usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
}
|
|
@ -256,6 +256,6 @@ public class Estacion implements Serializable {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.Estacion[estacionId=" + estacionId + "]";
|
||||
return descestacion;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,117 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* PtovtaTipoEstoque generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_TIPO_ESTOQUE")
|
||||
public class PtovtaTipoEstoque implements java.io.Serializable {
|
||||
|
||||
public static final int TIPO_CONTABILIDAD = 1;
|
||||
public static final int TIPO_SUMINISTRO = 2;
|
||||
public static final int TIPO_NORMAL = 3;
|
||||
|
||||
private Integer ptovtatipoestId;
|
||||
private String desctipoest;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
|
||||
public PtovtaTipoEstoque() {
|
||||
}
|
||||
|
||||
public PtovtaTipoEstoque(Integer ptovtatipoestId) {
|
||||
this.ptovtatipoestId = ptovtatipoestId;
|
||||
}
|
||||
|
||||
public PtovtaTipoEstoque(Integer ptovtatipoestId, String desctipoest, Boolean activo, Date fecmodif, Integer usuarioId) {
|
||||
this.ptovtatipoestId = ptovtatipoestId;
|
||||
this.desctipoest = desctipoest;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return desctipoest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (ptovtatipoestId != null ? ptovtatipoestId.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 PtovtaTipoEstoque))
|
||||
return false;
|
||||
|
||||
PtovtaTipoEstoque other = (PtovtaTipoEstoque) object;
|
||||
if ((this.ptovtatipoestId == null && other.ptovtatipoestId != null) || (this.ptovtatipoestId != null && !this.ptovtatipoestId.equals(other.ptovtatipoestId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Id
|
||||
@Column(name = "PTOVTATIPOEST_ID", unique = true, nullable = false, precision = 4, scale = 0)
|
||||
public Integer getPtovtatipoestId() {
|
||||
return this.ptovtatipoestId;
|
||||
}
|
||||
|
||||
public void setPtovtatipoestId(Integer ptovtatipoestId) {
|
||||
this.ptovtatipoestId = ptovtatipoestId;
|
||||
}
|
||||
|
||||
@Column(name = "DESCTIPOEST", length = 20)
|
||||
public String getDesctipoest() {
|
||||
return this.desctipoest;
|
||||
}
|
||||
|
||||
public void setDesctipoest(String desctipoest) {
|
||||
this.desctipoest = desctipoest;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return this.usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
}
|
|
@ -136,6 +136,18 @@ public class PuntoVenta implements Serializable {
|
|||
@JoinColumn(name = "PUNTOVENTAPADRE_ID")
|
||||
private PuntoVenta puntoVentaPadre;
|
||||
|
||||
@JoinColumn(name = "PTOVTATIPOEST_ID")
|
||||
@ManyToOne
|
||||
private PtovtaTipoEstoque ptovtaTipoEstoque;
|
||||
|
||||
public PtovtaTipoEstoque getPtovtaTipoEstoque() {
|
||||
return ptovtaTipoEstoque;
|
||||
}
|
||||
|
||||
public void setPtovtaTipoEstoque(PtovtaTipoEstoque ptovtaTipoEstoque) {
|
||||
this.ptovtaTipoEstoque = ptovtaTipoEstoque;
|
||||
}
|
||||
|
||||
public PtovtaComissao getComissaoId() {
|
||||
return comissaoId;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,124 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* TipoMovimentacion generated by hbm2java
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "TIPO_MOVIMENTACION")
|
||||
public class TipoMovimentacion implements java.io.Serializable {
|
||||
|
||||
public static final int TIPO_ADQUISICION = 1;
|
||||
public static final int TIPO_ENVIO = 2;
|
||||
public static final int TIPO_VOLVER = 3;
|
||||
public static final int TIPO_TRANSFERENCIA = 4;
|
||||
public static final int TIPO_PERDIDO = 5;
|
||||
public static final int TIPO_AJUSTE = 6;
|
||||
|
||||
private Integer tipomovimentacionId;
|
||||
private String desctipomovimentacion;
|
||||
private Boolean activo;
|
||||
private Date fecmodif;
|
||||
private Integer usuarioId;
|
||||
|
||||
public TipoMovimentacion() {
|
||||
}
|
||||
|
||||
public TipoMovimentacion(Integer tipomovimentacionId) {
|
||||
this.tipomovimentacionId = tipomovimentacionId;
|
||||
}
|
||||
|
||||
public TipoMovimentacion(Integer tipomovimentacionId, String desctipomovimentacion, Boolean activo, Date fecmodif, Integer usuarioId) {
|
||||
this.tipomovimentacionId = tipomovimentacionId;
|
||||
this.desctipomovimentacion = desctipomovimentacion;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return desctipomovimentacion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (tipomovimentacionId != null ? tipomovimentacionId.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 TipoMovimentacion))
|
||||
return false;
|
||||
|
||||
TipoMovimentacion other = (TipoMovimentacion) object;
|
||||
if ((this.tipomovimentacionId == null && other.tipomovimentacionId != null) || (this.tipomovimentacionId != null && !this.tipomovimentacionId.equals(other.tipomovimentacionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Id
|
||||
@Column(name = "TIPOMOVIMENTACION_ID", unique = true, nullable = false, precision = 4, scale = 0)
|
||||
public Integer getTipomovimentacionId() {
|
||||
return this.tipomovimentacionId;
|
||||
}
|
||||
|
||||
public void setTipomovimentacionId(Integer tipomovimentacionId) {
|
||||
this.tipomovimentacionId = tipomovimentacionId;
|
||||
}
|
||||
|
||||
@Column(name = "DESCTIPOMOVIMENTACION", length = 20)
|
||||
public String getDesctipomovimentacion() {
|
||||
return this.desctipomovimentacion;
|
||||
}
|
||||
|
||||
public void setDesctipomovimentacion(String desctipomovimentacion) {
|
||||
this.desctipomovimentacion = desctipomovimentacion;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return this.fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
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.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
|
||||
|
||||
public interface AbastoCentralService extends GenericService<AbastoCentral, Long> {
|
||||
|
||||
public List<AbastoCentral> buscaBilhetesPorAidf(Aidf aidf);
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
|
||||
public interface AbastoHistoService extends GenericService<AbastoHisto, Long> {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
||||
public interface AidfService extends GenericService<Aidf, Long> {
|
||||
|
||||
public List<AidfEspecie> obtenerTodosAdifEspecie();
|
||||
public List<AidfTipo> obtenerTodosAdifTipo();
|
||||
public List<Aidf> buscaAidfsPorEmpresas(List<Empresa> empresas);
|
||||
|
||||
}
|
|
@ -8,6 +8,7 @@ import java.util.List;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
|
||||
/**
|
||||
|
@ -36,4 +37,6 @@ public interface EstacionService {
|
|||
public List<Estacion> buscar(String descMac);
|
||||
|
||||
public Long getDecimalMAC(String mac);
|
||||
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
|
||||
public interface MovimentacionBilhetesService {
|
||||
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(String numBilhete);
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(Aidf aidf);
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(Aidf aidf, Date fecInicial, Date fecFinal);
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacion();
|
||||
|
||||
|
||||
public void realizaAdquisicionBilhetes(Aidf aidf);
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, TipoMovimentacion tipoMovimentacion);
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, Long cantidad, TipoMovimentacion tipoMovimentacion);
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, String formInicial, String formFinal, TipoMovimentacion tipoMovimentacion);
|
||||
|
||||
public PuntoVenta buscarAgSuprimento();
|
||||
public PuntoVenta buscarAgContabilidade();
|
||||
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacionPuntoVenta();
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, TipoMovimentacion tipoMovimentacion);
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, String formInicial, Long cantidad, TipoMovimentacion tipoMovimentacion);
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, String formInicial, String formFinal, TipoMovimentacion tipoMovimentacion);
|
||||
|
||||
}
|
|
@ -4,9 +4,12 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import java.util.List;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -33,4 +36,8 @@ public interface PuntoVentaService {
|
|||
public List<PuntoVenta> buscaPuntoVentaParada(Parada paradaId);
|
||||
|
||||
public List<PuntoVenta> buscarPuntoVentaSubordinados(PuntoVenta puntoVenta);
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaMovimentacionBilhetes(List<Empresa> empresas);
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaPorUsuario(Usuario usuario);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.AbastoCentralDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.service.AbastoCentralService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Service("abastoCentralService")
|
||||
public class AbastoCentralServiceImpl implements AbastoCentralService {
|
||||
|
||||
@Autowired
|
||||
private AbastoCentralDAO abastoCentralDAO;
|
||||
|
||||
public List<AbastoCentral> obtenerTodos() {
|
||||
return abastoCentralDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public AbastoCentral obtenerID(Long id) {
|
||||
return abastoCentralDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
public AbastoCentral suscribir(AbastoCentral entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
return abastoCentralDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
public AbastoCentral actualizacion(AbastoCentral entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
return abastoCentralDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public void borrar(AbastoCentral entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
abastoCentralDAO.borrar(entidad);
|
||||
}
|
||||
|
||||
private void setUsuarioFecmodifActivo(AbastoCentral entidad){
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
}
|
||||
|
||||
public List<AbastoCentral> buscaBilhetesPorAidf(Aidf aidf) {
|
||||
List<AbastoCentral> bilhetes = abastoCentralDAO.buscaBilhetesPorAidf(aidf);
|
||||
return bilhetes;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.hibernate.GenericHibernateDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.service.AbastoHistoService;
|
||||
|
||||
@Service("abastoHistoService")
|
||||
public class AbastoHistoServiceImpl implements AbastoHistoService {
|
||||
|
||||
@Override
|
||||
public List<AbastoHisto> obtenerTodos() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbastoHisto obtenerID(Long id) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbastoHisto suscribir(AbastoHisto entidad) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbastoHisto actualizacion(AbastoHisto entidad) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void borrar(AbastoHisto entidad) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.AidfDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.AidfEspecieDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.AidfTipoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfEspecie;
|
||||
import com.rjconsultores.ventaboletos.entidad.AidfTipo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Service("aidfService")
|
||||
public class AidfServiceImpl implements AidfService {
|
||||
|
||||
@Autowired
|
||||
private AidfDAO aidfDAO;
|
||||
|
||||
@Autowired
|
||||
private AidfEspecieDAO aidfEspecieDAO;
|
||||
|
||||
@Autowired
|
||||
private AidfTipoDAO aidfTipoDAO;
|
||||
|
||||
@Autowired
|
||||
private MovimentacionBilhetesService movimentacionBilhetesService;
|
||||
|
||||
public List<Aidf> obtenerTodos() {
|
||||
return aidfDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public Aidf obtenerID(Long id) {
|
||||
return aidfDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public Aidf suscribir(Aidf entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
|
||||
Aidf aidf = aidfDAO.suscribir(entidad);
|
||||
|
||||
if(aidf != null)
|
||||
movimentacionBilhetesService.realizaAdquisicionBilhetes(aidf);
|
||||
|
||||
return aidf;
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public Aidf actualizacion(Aidf entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
return aidfDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(Aidf entidad) {
|
||||
setUsuarioFecmodifActivo(entidad);
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
aidfDAO.borrar(entidad);
|
||||
}
|
||||
|
||||
private void setUsuarioFecmodifActivo(Aidf entidad){
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
}
|
||||
|
||||
public List<AidfEspecie> obtenerTodosAdifEspecie() {
|
||||
return aidfEspecieDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public List<AidfTipo> obtenerTodosAdifTipo() {
|
||||
return aidfTipoDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public List<Aidf> buscaAidfsPorEmpresas(List<Empresa> empresas) {
|
||||
List<Aidf> aidfs = aidfDAO.buscaAidfsPorEmpresas(empresas);
|
||||
return aidfs;
|
||||
}
|
||||
}
|
|
@ -15,6 +15,7 @@ import com.rjconsultores.ventaboletos.dao.EstacionDAO;
|
|||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.EstacionSitef;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.EstacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -111,4 +112,11 @@ public class EstacionServiceImpl implements EstacionService {
|
|||
mac = mac.replace("-", "");
|
||||
return Long.parseLong(mac, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta) {
|
||||
List<Estacion> estaciones = estacionDAO.buscarEstaciones(puntoVenta);
|
||||
return estaciones;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,196 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
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.AbastoCentralDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.AbastoHistoDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.AidfDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.PtovtaTipoEstoqueDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.TipoMovimentacionDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoCentral;
|
||||
import com.rjconsultores.ventaboletos.entidad.AbastoHisto;
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoMovimentacion;
|
||||
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Service("movimentacioBilhetesService")
|
||||
public class MovimentacionBilhetesServiceImpl implements MovimentacionBilhetesService {
|
||||
|
||||
@Autowired
|
||||
private AidfDAO aidfDAO;
|
||||
|
||||
@Autowired
|
||||
private AbastoCentralDAO abastoCentralDAO;
|
||||
|
||||
@Autowired
|
||||
private AbastoHistoDAO abastoHistoDAO;
|
||||
|
||||
@Autowired
|
||||
private TipoMovimentacionDAO tipoMovimentacionDAO;
|
||||
|
||||
@Autowired
|
||||
private PuntoVentaDAO puntoVentaDAO;
|
||||
|
||||
@Autowired
|
||||
private PtovtaTipoEstoqueDAO ptovtaTipoEstoqueDAO;
|
||||
|
||||
public MovimentacionBilhetesServiceImpl() {
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(String numBilhete) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(Aidf aidf) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AbastoHisto> obtenerHistoricoMovimetacion(Aidf aidf, Date fecInicial, Date fecFinal) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaAdquisicionBilhetes(Aidf aidf){
|
||||
|
||||
PuntoVenta suprimento = buscarAgSuprimento();
|
||||
|
||||
long formInicial = Long.valueOf(aidf.getForminicial());
|
||||
long formFinal = Long.valueOf(aidf.getFormfinal());
|
||||
|
||||
List<AbastoCentral> bilhetes = new ArrayList<AbastoCentral>();
|
||||
|
||||
for(long formCorrente = formInicial; formCorrente <= formFinal; formCorrente++){
|
||||
AbastoCentral nuevoBilhete = new AbastoCentral();
|
||||
nuevoBilhete.setAidf(aidf);
|
||||
nuevoBilhete.setNumfoliopreimpreso(formCorrente+"");
|
||||
nuevoBilhete.setNumseriepreimpresa(aidf.getSerie());
|
||||
nuevoBilhete.setNumsubseriepreimpreso(aidf.getSubserie());
|
||||
nuevoBilhete.setPuntoventa(suprimento);
|
||||
nuevoBilhete.setFecmodif(Calendar.getInstance().getTime());
|
||||
nuevoBilhete.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
nuevoBilhete.setActivo(true);
|
||||
|
||||
bilhetes.add(nuevoBilhete);
|
||||
}
|
||||
|
||||
abastoCentralDAO.suscribirBilhetes(bilhetes);
|
||||
|
||||
TipoMovimentacion adquisicion = tipoMovimentacionDAO.buscarTipoMovimentacio(TipoMovimentacion.TIPO_ADQUISICION);
|
||||
abastoHistoDAO.grabaHistoricoBilhetes(bilhetes, adquisicion);
|
||||
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, TipoMovimentacion tipoMovimentacion) {
|
||||
|
||||
if(validaTipoMovimentacao(tipoMovimentacion)){
|
||||
List<AbastoCentral> bilhetes = abastoCentralDAO.obtenerBilhetes(aidf, origem);
|
||||
atualizaBilhetesEGrabaHistorico(bilhetes, destino, tipoMovimentacion);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, Long cantidad, TipoMovimentacion tipoMovimentacion) {
|
||||
|
||||
if(validaTipoMovimentacao(tipoMovimentacion)){
|
||||
Long formInicial = Long.valueOf(aidf.getForminicial());
|
||||
Long formFinal = formInicial + cantidad.longValue();
|
||||
|
||||
realizaMovimentacionBilhetes(aidf, origem, destino, formInicial.toString(), formFinal.toString(), tipoMovimentacion);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(Aidf aidf, PuntoVenta origem, PuntoVenta destino, String formInicial, String formFinal, TipoMovimentacion tipoMovimentacion) {
|
||||
|
||||
if(validaTipoMovimentacao(tipoMovimentacion)){
|
||||
List<AbastoCentral> bilhetes = abastoCentralDAO.obtenerBilhetes(aidf, formInicial, formFinal, origem);
|
||||
atualizaBilhetesEGrabaHistorico(bilhetes, destino, tipoMovimentacion);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean validaTipoMovimentacao(TipoMovimentacion tipoMovimentacion){
|
||||
TipoMovimentacion adquisicion = tipoMovimentacionDAO.buscarTipoMovimentacio(TipoMovimentacion.TIPO_ADQUISICION);
|
||||
return !tipoMovimentacion.equals(adquisicion);
|
||||
}
|
||||
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacion() {
|
||||
List<TipoMovimentacion> tiposMovimentacion = tipoMovimentacionDAO.obtenerTodos();
|
||||
return tiposMovimentacion;
|
||||
}
|
||||
|
||||
public PuntoVenta buscarAgSuprimento() {
|
||||
PtovtaTipoEstoque tipoSuprimento = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
||||
PuntoVenta suprimento = puntoVentaDAO.buscarPuntoVentaPorTipoEstoque(tipoSuprimento).get(0);
|
||||
|
||||
return suprimento;
|
||||
}
|
||||
|
||||
|
||||
public PuntoVenta buscarAgContabilidade() {
|
||||
PtovtaTipoEstoque tipoContabilidade = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
||||
PuntoVenta contabilidade = puntoVentaDAO.buscarPuntoVentaPorTipoEstoque(tipoContabilidade).get(0);
|
||||
|
||||
return contabilidade;
|
||||
}
|
||||
|
||||
public List<TipoMovimentacion> obtenerTiposMovimetacionPuntoVenta() {
|
||||
List<TipoMovimentacion> tipos = tipoMovimentacionDAO.obtenerTiposMovimetacionPuntoVenta();
|
||||
return tipos;
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, TipoMovimentacion tipoMovimentacion) {
|
||||
List<AbastoCentral> bilhetes = abastoCentralDAO.obtenerBilhetesPorPuntoVenta(puntoVentaBilhetes, origem);
|
||||
atualizaBilhetesEGrabaHistorico(bilhetes, destino, tipoMovimentacion);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, String _formInicial, Long cantidad, TipoMovimentacion tipoMovimentacion) {
|
||||
|
||||
Long formInicial = Long.valueOf(_formInicial);
|
||||
Long formFinal = formInicial + cantidad.longValue();
|
||||
|
||||
realizaMovimentacionBilhetes(puntoVentaBilhetes, origem, destino, formInicial.toString(), formFinal.toString(), tipoMovimentacion);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void realizaMovimentacionBilhetes(PuntoVenta puntoVentaBilhetes, Estacion origem, Estacion destino, String formInicial, String formFinal, TipoMovimentacion tipoMovimentacion) {
|
||||
|
||||
List<AbastoCentral> bilhetes = abastoCentralDAO.obtenerBilhetesPorPuntoVenta(formInicial, formFinal, puntoVentaBilhetes, origem);
|
||||
atualizaBilhetesEGrabaHistorico(bilhetes, destino, tipoMovimentacion);
|
||||
}
|
||||
|
||||
private void atualizaBilhetesEGrabaHistorico(List<AbastoCentral> bilhetes, Estacion destino, TipoMovimentacion tipoMovimentacion){
|
||||
|
||||
abastoCentralDAO.actualizaBilhetes(bilhetes, destino);
|
||||
abastoHistoDAO.grabaHistoricoBilhetes(bilhetes, tipoMovimentacion);
|
||||
}
|
||||
|
||||
private void atualizaBilhetesEGrabaHistorico(List<AbastoCentral> bilhetes, PuntoVenta destino, TipoMovimentacion tipoMovimentacion){
|
||||
|
||||
abastoCentralDAO.actualizaBilhetes(bilhetes, destino);
|
||||
abastoHistoDAO.grabaHistoricoBilhetes(bilhetes, tipoMovimentacion);
|
||||
}
|
||||
}
|
|
@ -11,11 +11,16 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.EstacionDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.UsuarioUbicacionDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPagoDet;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioUbicacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
/**
|
||||
|
@ -28,6 +33,9 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
@Autowired
|
||||
private PuntoVentaDAO puntoVentaDAO;
|
||||
|
||||
@Autowired
|
||||
private UsuarioUbicacionDAO usuarioUbicacionDAO;
|
||||
|
||||
//FIXME : Remover esse método de quem está usando. Esse método carrega muitos dados
|
||||
@Deprecated
|
||||
public List<PuntoVenta> obtenerTodos() {
|
||||
|
@ -120,10 +128,19 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
|||
return puntoVentaDAO.buscaPuntoVentaParada(paradaId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PuntoVenta> buscarPuntoVentaSubordinados(PuntoVenta puntoVenta) {
|
||||
List<PuntoVenta> lsPuntoVentaSubordinados = puntoVentaDAO.buscarPuntoVentaSubordinados(puntoVenta);
|
||||
|
||||
return lsPuntoVentaSubordinados;
|
||||
}
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaMovimentacionBilhetes(List<Empresa> empresas) {
|
||||
List<PuntoVenta> puntosVenta = puntoVentaDAO.buscarPuntosVentaMovimentacionBilhetes(empresas);
|
||||
return puntosVenta;
|
||||
}
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaPorUsuario(Usuario usuario) {
|
||||
List<PuntoVenta> puntosVenta = usuarioUbicacionDAO.buscarPuntoVentaPorUsuario(usuario);
|
||||
return puntosVenta;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@ public class UsuarioServiceImpl implements UsuarioService, UserDetailsService {
|
|||
org.springframework.security.authentication.encoding.Md5PasswordEncoder a =
|
||||
new org.springframework.security.authentication.encoding.Md5PasswordEncoder();
|
||||
|
||||
System.out.println("sfdsdfsfsdoifiosdfoijsdaoi´jasi´jsd");
|
||||
|
||||
return a.encodePassword(senha, login);
|
||||
}
|
||||
|
||||
|
|
|
@ -13,187 +13,193 @@
|
|||
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
|
||||
<property name="show_sql">true</property>
|
||||
<property name="hibernate.query.substitutions">true 1, false 0</property>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AlertaCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Autobus" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Autorizacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Articulo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AsientoExclusivo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Banco" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CancelacionCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CancelacionCargo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Categoria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaClase" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaCorrida" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaDescuento" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaMarca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaMercado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Ciudad" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Colonia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ClaseServicio" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ComisionistaExterno" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CompaniaBancaria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Conductor" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Conexion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionCtrlTemp" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionTemp" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Convenio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConvenioDet" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Constante" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Corrida" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CorridaCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CorridaTramo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Cortesia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CortesiaDireccion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CuponConvenio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CuponSecretaria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DepositoBancario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DiagramaAutobus" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Division" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Empleado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Empresa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EmpresaImposto" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Estacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Estado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaAsiento" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaCorrida" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaOperacional" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaTramo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FormaPago" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FormaPagoDet" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.GrupoCortesia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.GrupoRuta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FuncionSistema" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Marca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MercadoCompetido" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MerchantBancario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Moneda" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoCancelacion" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoReimpresion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoViaje" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Nodo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.OrgaoConcedente" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Pais" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Parada" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCanjePunto" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCompraPunto" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamRecoleccion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Perfil" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PerfilFuncion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PeriodoVacacional" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.OrgaoTramo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Plaza" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Pricing" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingImporte" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingVigencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingClase" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingMarca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingMercado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingDia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingCorrida" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingOcupaAntecipa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingCategoria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingTipoServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingAsiento" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingEspecifico" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingRuta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProductoServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdClaseServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdFormaPago" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdMarca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdPrecio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdMercado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdPuntoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdRuta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdTipoptovta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdVigencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PuntoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Redondeo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RedondeoCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RedondeoMarca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionCategoria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionClase" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionMarca" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionMercado" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RestriccionPago" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RolOperativo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Ruta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaCombinacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaEmpresa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaSecuencia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RhPagoConductor" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Secretaria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Sistema" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Tarifa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaOficial" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaHist" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaMinima" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaCategoria" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoConvenio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCambioCtrl" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCorte" />
|
||||
<mapping
|
||||
class="com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCortesia" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoDomicilio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoEmpleado" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoMovimiento" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoOcupacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoParada" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoVenta" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Tramo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoKmServicio" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoTiempo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoKm" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Turno" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Usuario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioBancario" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioPerfil" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Via" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.VigenciaTarifa" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Zona" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamArticulo" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EventoExtra" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoEventoExtra" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra" />
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaViaje" />
|
||||
<property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
|
||||
<property name="hibernate.connection.url">jdbc:oracle:thin:@sistema.grupoguanabara.net.br:1521:ORCL</property>
|
||||
<property name="hibernate.connection.username">vtabol</property>
|
||||
<property name="hibernate.connection.password">vtax05</property>
|
||||
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
|
||||
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AlertaCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Autobus"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Autorizacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Articulo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AsientoExclusivo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Banco"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CancelacionCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CancelacionCargo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Categoria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaClase"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaCorrida"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaDescuento"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaMarca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaMercado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Ciudad"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Colonia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ClaseServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ComisionistaExterno"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CompaniaBancaria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Conductor"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Conexion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionCtrlTemp"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConexionTemp"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Convenio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ConvenioDet"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Constante"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Corrida"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CorridaCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CorridaTramo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Cortesia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CortesiaDireccion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CuponConvenio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.CuponSecretaria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DepositoBancario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.DiagramaAutobus"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Division"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Empleado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Empresa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EmpresaImposto"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Estacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Estado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaAsiento"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaCorrida"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaOperacional"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EsquemaTramo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FormaPago"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FormaPagoDet"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.GrupoCortesia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.GrupoRuta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.FuncionSistema"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Marca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MercadoCompetido"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MerchantBancario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Moneda"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoCancelacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoReimpresion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.MotivoViaje"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Nodo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.OrgaoConcedente"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Pais"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Parada"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCanjePunto"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamCompraPunto"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamRecoleccion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Perfil"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PerfilFuncion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PeriodoVacacional"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.OrgaoTramo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Plaza"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Pricing"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingAnticipacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingImporte"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingVigencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingClase"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingMarca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingMercado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingDia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingCorrida"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingCategoria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingTipoServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingAsiento"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingOcupacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingEspecifico"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PricingRuta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProductoServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdClaseServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdFormaPago"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdMarca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdPrecio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdMercado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdPuntoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdRuta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdTipoptovta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ProdVigencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PuntoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Redondeo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RedondeoCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RedondeoMarca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionCategoria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionClase"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionMarca"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionMercado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RestriccionPago"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RolOperativo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Ruta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaCombinacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaEmpresa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RutaSecuencia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.RhPagoConductor"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Secretaria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Sistema"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Tarifa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaOficial"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaHist"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaMinima"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaCategoria"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoConvenio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCambioCtrl"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCorte"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoCortesia"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoDomicilio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoEmpleado"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoMovimiento"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoOcupacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoParada"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoVenta"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Tramo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoKmServicio"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoTiempo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TramoKm"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Turno"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Usuario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioBancario"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioPerfil"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Via"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.VigenciaTarifa"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Zona"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.ParamArticulo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.EventoExtra"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoEventoExtra"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TarjetaViaje"/>
|
||||
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.Aidf"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AidfEspecie"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.AidfTipo"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.TipoMovimentacion"/>
|
||||
<mapping class="com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque"/>
|
||||
</session-factory>
|
||||
</hibernate-configuration>
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
|
||||
|
||||
<hibernate-reverse-engineering>
|
||||
|
||||
<table-filter match-name="AIDF_TIPO" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="AIDF_ESPECIE" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="PTOVTA_TIPO_ESTOQUE" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="TIPO_MOVIMENTACION" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="ABASTO_CENTRAL" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="ABASTO_HISTO" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
<table-filter match-name="AIDF" package="com.rjconsultores.ventaboletos.entidad"/>
|
||||
|
||||
<table schema="VTABOL" name="ABASTO_CENTRAL">
|
||||
<primary-key>
|
||||
<generator class="sequence">
|
||||
<param name="sequence">ABASTO_HISTO_SEQ</param>
|
||||
<param name="name">ABASTO_HISTO_SEQ</param>
|
||||
<param name="allocationSize">1</param>
|
||||
</generator>
|
||||
<key-column name="ABASTOCENTRAL_ID"></key-column>
|
||||
</primary-key>
|
||||
</table>
|
||||
|
||||
<table schema="VTABOL" name="ABASTO_HISTO">
|
||||
<primary-key>
|
||||
<generator class="sequence">
|
||||
<param name="sequence">ABASTO_HISTO_SEQ</param>
|
||||
<param name="name">ABASTO_HISTO_SEQ</param>
|
||||
<param name="allocationSize">1</param>
|
||||
</generator>
|
||||
<key-column name="ABASTOHISTO_ID"></key-column>
|
||||
</primary-key>
|
||||
</table>
|
||||
|
||||
<table schema="VTABOL" name="AIDF">
|
||||
<primary-key>
|
||||
<generator class="sequence">
|
||||
<param name="sequence">AIDF_SEQ</param>
|
||||
<param name="name">AIDF_SEQ</param>
|
||||
<param name="allocationSize">1</param>
|
||||
</generator>
|
||||
<key-column name="AIDF_ID"></key-column>
|
||||
</primary-key>
|
||||
</table>
|
||||
|
||||
</hibernate-reverse-engineering>
|
Loading…
Reference in New Issue