git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@28885 d1611594-4594-4d17-8e1d-87c2c4800839
parent
448939ffce
commit
3b031de5ed
|
@ -98,7 +98,6 @@
|
|||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zkplus.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zul.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/zweb.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jasperreports-4.5.0.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jfreechart-1.0.12.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/poi-3.8-20120326.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6">
|
||||
|
@ -106,5 +105,8 @@
|
|||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jasperreports-5.1.0.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jasperreports-fonts-5.1.0.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jasperreports-javaflow-5.1.0.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
|
@ -21,26 +21,26 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingAnticipacionDAO")
|
||||
public class PricingAnticipacionHibernateDAO extends GenericHibernateDAO<PricingAnticipacion, Integer>
|
||||
implements PricingAnticipacionDAO {
|
||||
implements PricingAnticipacionDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingAnticipacionHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingAnticipacionHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingAnticipacion> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingAnticipacion> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<PricingAnticipacion> obtenerPorPricing(Pricing pricing) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
public List<PricingAnticipacion> obtenerPorPricing(Pricing pricing) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,28 +21,27 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingAsientoDAO")
|
||||
public class PricingAsientoHibernateDAO extends GenericHibernateDAO<PricingAsiento, Integer>
|
||||
implements PricingAsientoDAO {
|
||||
implements PricingAsientoDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingAsientoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingAsientoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingAsiento> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingAsiento> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<PricingAsiento> obtenerPricingCategoria(Pricing pricing, Integer asiento) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("numeasiento", asiento.toString()));
|
||||
public List<PricingAsiento> obtenerPricingCategoria(Pricing pricing, Integer asiento) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("numeasiento", asiento.toString()));
|
||||
|
||||
return c.list();
|
||||
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,31 +22,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingCategoriaDAO")
|
||||
public class PricingCategoriaHibernateDAO extends GenericHibernateDAO<PricingCategoria, Integer>
|
||||
implements PricingCategoriaDAO {
|
||||
implements PricingCategoriaDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingCategoriaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingCategoriaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingCategoria> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingCategoria> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingCategoria(Pricing pricing, Categoria categoria) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("categoria", categoria));
|
||||
public Boolean obtenerPricingCategoria(Pricing pricing, Categoria categoria) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("categoria", categoria));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,31 +22,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingClaseDAO")
|
||||
public class PricingClaseHibernateDAO extends GenericHibernateDAO<PricingClase, Integer>
|
||||
implements PricingClaseDAO {
|
||||
implements PricingClaseDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingClaseHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingClaseHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingClase> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingClase> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingClase(Pricing pricing, ClaseServicio claseServicio) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("claseServicio", claseServicio));
|
||||
public Boolean obtenerPricingClase(Pricing pricing, ClaseServicio claseServicio) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("claseServicio", claseServicio));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,31 +22,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingCorridaDAO")
|
||||
public class PricingCorridaHibernateDAO extends GenericHibernateDAO<PricingCorrida, Integer>
|
||||
implements PricingCorridaDAO {
|
||||
implements PricingCorridaDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingCorridaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingCorridaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingCorrida> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingCorrida> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingCorrida(Pricing pricing, CorridaCtrl corrida) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("corridaCtrl", corrida));
|
||||
public Boolean obtenerPricingCorrida(Pricing pricing, CorridaCtrl corrida) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("corridaCtrl", corrida));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingDiaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingDia;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
@ -24,72 +25,72 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingDiaDAO")
|
||||
public class PricingDiaHibernateDAO extends GenericHibernateDAO<PricingDia, Integer>
|
||||
implements PricingDiaDAO {
|
||||
implements PricingDiaDAO {
|
||||
|
||||
private static Logger log = Logger.getLogger(PricingDiaHibernateDAO.class);
|
||||
private static Logger log = Logger.getLogger(PricingDiaHibernateDAO.class);
|
||||
|
||||
@Autowired
|
||||
public PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingDia> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingDia> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<PricingDia> buscarTraslapa(PricingDia pricingDia) {
|
||||
Date horarioinicio = pricingDia.getHorarioinicio();
|
||||
Date horariofin = pricingDia.getHorariofin();
|
||||
public List<PricingDia> buscarTraslapa(PricingDia pricingDia) {
|
||||
Date horarioinicio = pricingDia.getHorarioinicio();
|
||||
Date horariofin = pricingDia.getHorariofin();
|
||||
|
||||
SimpleDateFormat sf = new SimpleDateFormat("HHmm");
|
||||
SimpleDateFormat sf = new SimpleDateFormat("HHmm");
|
||||
|
||||
StringBuilder hql = new StringBuilder();
|
||||
hql.append("select pv from PricingDia pv ");
|
||||
hql.append(" where pv.activo = 1 ");
|
||||
hql.append(" and pricing.pricingId = ").append(pricingDia.getPricing().getPricingId());
|
||||
// hql.append(" and ( 1=1 or ");
|
||||
// if (pricingDia.getIndlunes()) {
|
||||
// hql.append(" pv.indlunes = ").append(pricingDia.getIndlunes());
|
||||
// }
|
||||
// if (pricingDia.getIndmartes()) {
|
||||
// hql.append(" or pv.indmartes = ").append(pricingDia.getIndmartes());
|
||||
// }
|
||||
// if (pricingDia.getIndmiercoles()) {
|
||||
// hql.append(" or pv.indmiercoles = ").append(pricingDia.getIndmiercoles());
|
||||
// }
|
||||
// if (pricingDia.getIndjueves()) {
|
||||
// hql.append(" or pv.indjueves = ").append(pricingDia.getIndjueves());
|
||||
// }
|
||||
// if (pricingDia.getIndviernes()) {
|
||||
// hql.append(" or pv.indviernes = ").append(pricingDia.getIndviernes());
|
||||
// }
|
||||
// if (pricingDia.getIndsabado()) {
|
||||
// hql.append(" or pv.indsabado = ").append(pricingDia.getIndsabado());
|
||||
// }
|
||||
// if (pricingDia.getInddomingo()) {
|
||||
// hql.append(" or pv.inddomingo = ").append(pricingDia.getInddomingo());
|
||||
// }
|
||||
// hql.append(" ) ");
|
||||
// hql.append(" and ((( to_char('").append(sf.format(horarioinicio)).append("') BETWEEN to_char(pv.horarioinicio, 'HH24MI') AND to_char(pv.horariofin, 'HH24MI') ) ");
|
||||
// hql.append(" OR (to_char('").append(sf.format(horariofin)).append("') BETWEEN to_char(pv.horarioinicio, 'HH24MI') AND to_char(pv.horariofin, 'HH24MI'))) ");
|
||||
// hql.append(" OR ((to_char(pv.horarioinicio, 'HH24MI') BETWEEN to_char('").append(sf.format(horarioinicio)).append("') AND to_char('").append(sf.format(horariofin)).append("') ) ");
|
||||
// hql.append(" OR (to_char(pv.horariofin, 'HH24MI') BETWEEN to_char('").append(sf.format(horarioinicio)).append("') AND to_char('").append(sf.format(horariofin)).append("') ))) ");
|
||||
StringBuilder hql = new StringBuilder();
|
||||
hql.append("select pv from PricingDia pv ");
|
||||
hql.append(" where pv.activo = 1 ");
|
||||
hql.append(" and pricing.pricingId = ").append(pricingDia.getPricing().getPricingId());
|
||||
// hql.append(" and ( 1=1 or ");
|
||||
// if (pricingDia.getIndlunes()) {
|
||||
// hql.append(" pv.indlunes = ").append(pricingDia.getIndlunes());
|
||||
// }
|
||||
// if (pricingDia.getIndmartes()) {
|
||||
// hql.append(" or pv.indmartes = ").append(pricingDia.getIndmartes());
|
||||
// }
|
||||
// if (pricingDia.getIndmiercoles()) {
|
||||
// hql.append(" or pv.indmiercoles = ").append(pricingDia.getIndmiercoles());
|
||||
// }
|
||||
// if (pricingDia.getIndjueves()) {
|
||||
// hql.append(" or pv.indjueves = ").append(pricingDia.getIndjueves());
|
||||
// }
|
||||
// if (pricingDia.getIndviernes()) {
|
||||
// hql.append(" or pv.indviernes = ").append(pricingDia.getIndviernes());
|
||||
// }
|
||||
// if (pricingDia.getIndsabado()) {
|
||||
// hql.append(" or pv.indsabado = ").append(pricingDia.getIndsabado());
|
||||
// }
|
||||
// if (pricingDia.getInddomingo()) {
|
||||
// hql.append(" or pv.inddomingo = ").append(pricingDia.getInddomingo());
|
||||
// }
|
||||
// hql.append(" ) ");
|
||||
// hql.append(" and ((( to_char('").append(sf.format(horarioinicio)).append("') BETWEEN to_char(pv.horarioinicio, 'HH24MI') AND to_char(pv.horariofin, 'HH24MI') ) ");
|
||||
// hql.append(" OR (to_char('").append(sf.format(horariofin)).append("') BETWEEN to_char(pv.horarioinicio, 'HH24MI') AND to_char(pv.horariofin, 'HH24MI'))) ");
|
||||
// hql.append(" OR ((to_char(pv.horarioinicio, 'HH24MI') BETWEEN to_char('").append(sf.format(horarioinicio)).append("') AND to_char('").append(sf.format(horariofin)).append("') ) ");
|
||||
// hql.append(" OR (to_char(pv.horariofin, 'HH24MI') BETWEEN to_char('").append(sf.format(horarioinicio)).append("') AND to_char('").append(sf.format(horariofin)).append("') ))) ");
|
||||
|
||||
hql.append(" and pv.horariofin >= :horariofin ");
|
||||
hql.append(" and pv.horarioinicio >= :horarioinicio ");
|
||||
hql.append(" and pv.horariofin >= :horariofin ");
|
||||
hql.append(" and pv.horarioinicio >= :horarioinicio ");
|
||||
|
||||
log.info("Hora Ini: " + sf.format(horarioinicio));
|
||||
log.info("Hora Fin: " + sf.format(horariofin));
|
||||
log.info("SQL: " + hql.toString());
|
||||
log.info("Hora Ini: " + sf.format(horarioinicio));
|
||||
log.info("Hora Fin: " + sf.format(horariofin));
|
||||
log.info("SQL: " + hql.toString());
|
||||
|
||||
Query sq = getSession().createQuery(hql.toString());
|
||||
sq.setParameter("horariofin", horariofin);
|
||||
sq.setParameter("horarioinicio", horarioinicio);
|
||||
Query sq = getSession().createQuery(hql.toString());
|
||||
sq.setParameter("horariofin", horariofin);
|
||||
sq.setParameter("horarioinicio", horarioinicio);
|
||||
|
||||
return sq.list();
|
||||
}
|
||||
return sq.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,48 +22,48 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingDAO")
|
||||
public class PricingHibernateDAO extends GenericHibernateDAO<Pricing, Integer>
|
||||
implements PricingDAO {
|
||||
implements PricingDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Pricing> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<Pricing> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa,
|
||||
Short cantboleto, Integer cantdiasanticipacion,
|
||||
BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo) {
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa,
|
||||
Short cantboleto, Integer cantdiasanticipacion,
|
||||
BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
c.add(Restrictions.eq("nombPricing", nombPricing));
|
||||
c.add(Restrictions.eq("empresa", empresa));
|
||||
c.add(Restrictions.eq("cantboleto", cantboleto));
|
||||
c.add(Restrictions.eq("cantdiasanticipacion", cantdiasanticipacion));
|
||||
if (descuentoporcentaje != null) {
|
||||
c.add(Restrictions.eq("descuentoporcentaje", descuentoporcentaje));
|
||||
}
|
||||
if (descuentoporcredondo != null) {
|
||||
c.add(Restrictions.eq("descuentoporcredondo", descuentoporcredondo));
|
||||
}
|
||||
c.add(Restrictions.eq("nombPricing", nombPricing));
|
||||
c.add(Restrictions.eq("empresa", empresa));
|
||||
c.add(Restrictions.eq("cantboleto", cantboleto));
|
||||
c.add(Restrictions.eq("cantdiasanticipacion", cantdiasanticipacion));
|
||||
if (descuentoporcentaje != null) {
|
||||
c.add(Restrictions.eq("descuentoporcentaje", descuentoporcentaje));
|
||||
}
|
||||
if (descuentoporcredondo != null) {
|
||||
c.add(Restrictions.eq("descuentoporcredondo", descuentoporcredondo));
|
||||
}
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<Pricing> buscarPorNombre(String nombPricing) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
public List<Pricing> buscarPorNombre(String nombPricing) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
c.add(Restrictions.eq("nombPricing", nombPricing));
|
||||
c.add(Restrictions.eq("nombPricing", nombPricing));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
|||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingImporteDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingImporte;
|
||||
import java.util.List;
|
||||
import org.hibernate.Criteria;
|
||||
|
@ -21,27 +22,27 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingImporteDAO")
|
||||
public class PricingImporteHibernateDAO extends GenericHibernateDAO<PricingImporte, Integer>
|
||||
implements PricingImporteDAO {
|
||||
implements PricingImporteDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingImporteHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingImporteHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingImporte> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingImporte> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public List<PricingImporte> buscarMoneda(PricingImporte pricingImporte, Moneda moneda) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricingImporte.getPricing()));
|
||||
c.add(Restrictions.eq("moneda", moneda));
|
||||
public List<PricingImporte> buscarMoneda(PricingImporte pricingImporte, Moneda moneda) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricingImporte.getPricing()));
|
||||
c.add(Restrictions.eq("moneda", moneda));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,14 +32,14 @@ public class PricingMarcaHibernateDAO extends GenericHibernateDAO<PricingMarca,
|
|||
@Override
|
||||
public List<PricingMarca> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingMarca(Pricing pricing, Marca marca) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("marca", marca));
|
||||
|
||||
|
|
|
@ -22,32 +22,32 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingMercadoDAO")
|
||||
public class PricingMercadoHibernateDAO extends GenericHibernateDAO<PricingMercado, Integer>
|
||||
implements PricingMercadoDAO {
|
||||
implements PricingMercadoDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingMercadoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingMercadoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingMercado> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingMercado> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingMercado(Pricing pricing, Parada origen, Parada destino) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("origen", origen));
|
||||
c.add(Restrictions.eq("destino", destino));
|
||||
public Boolean obtenerPricingMercado(Pricing pricing, Parada origen, Parada destino) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("origen", origen));
|
||||
c.add(Restrictions.eq("destino", destino));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public class PricingOcupacionHibernateDAO extends GenericHibernateDAO<PricingOcu
|
|||
@Override
|
||||
public List<PricingOcupacion> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class PricingOcupacionHibernateDAO extends GenericHibernateDAO<PricingOcu
|
|||
|
||||
public List<PricingOcupacion> podeSalvar(Pricing pricing) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
|
||||
return c.list();
|
||||
|
|
|
@ -23,31 +23,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingPuntoVentaDAO")
|
||||
public class PricingPuntoVentaHibernateDAO extends GenericHibernateDAO<PricingPuntoVenta, Integer>
|
||||
implements PricingPuntoVentaDAO {
|
||||
implements PricingPuntoVentaDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingPuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingPuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingPuntoVenta> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingPuntoVenta> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingPuntoVenta(Pricing pricing, PuntoVenta puntoVenta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("puntoVenta", puntoVenta));
|
||||
public Boolean obtenerPricingPuntoVenta(Pricing pricing, PuntoVenta puntoVenta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("puntoVenta", puntoVenta));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,32 +22,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingRutaDAO")
|
||||
public class PricingRutaHibernateDAO extends GenericHibernateDAO<PricingRuta, Integer>
|
||||
implements PricingRutaDAO {
|
||||
implements PricingRutaDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingRutaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingRutaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingRuta> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingRuta> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingRuta(Pricing pricing, Ruta ruta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("ruta", ruta));
|
||||
public Boolean obtenerPricingRuta(Pricing pricing, Ruta ruta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("ruta", ruta));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,14 +32,14 @@ public class PricingTipoPtoVtaHibernateDAO extends GenericHibernateDAO<PricingTi
|
|||
@Override
|
||||
public List<PricingTipoPtoVta> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingTipoPuntoVenta(Pricing pricing, TipoPuntoVenta tipoPuntoVenta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("tipoPtovta", tipoPuntoVenta));
|
||||
|
||||
|
|
|
@ -22,31 +22,31 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository("pricingTipoServicioDAO")
|
||||
public class PricingTipoServicioHibernateDAO extends GenericHibernateDAO<PricingTipoServicio, Integer>
|
||||
implements PricingTipoServicioDAO {
|
||||
implements PricingTipoServicioDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingTipoServicioHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingTipoServicioHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingTipoServicio> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingTipoServicio> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingTipoServicio(Pricing pricing, TipoServicio tipoServicio) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("tipoServicio", tipoServicio));
|
||||
public Boolean obtenerPricingTipoServicio(Pricing pricing, TipoServicio tipoServicio) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
c.add(Restrictions.eq("tipoServicio", tipoServicio));
|
||||
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (c.list().size() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,85 +4,80 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingVigenciaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.VigenciaTarifa;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingVigenciaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafius
|
||||
*/
|
||||
@Repository("pricingVigenciaDAO")
|
||||
public class PricingVigenciaHibernateDAO extends GenericHibernateDAO<PricingVigencia, Integer>
|
||||
implements PricingVigenciaDAO {
|
||||
implements PricingVigenciaDAO {
|
||||
|
||||
@Autowired
|
||||
public PricingVigenciaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
@Autowired
|
||||
public PricingVigenciaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingVigencia> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
@Override
|
||||
public List<PricingVigencia> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PricingVigencia> buscarPorVigencias(PricingVigencia pv) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
@Override
|
||||
public List<PricingVigencia> buscarPorVigencias(PricingVigencia pv) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
|
||||
c.add(Restrictions.eq("pricing", pv.getPricing()));
|
||||
c.add(Restrictions.eq("pricing", pv.getPricing()));
|
||||
|
||||
Date fecinicioventa = pv.getFecinicioventa();
|
||||
Date fecfinventa = pv.getFecfinventa();
|
||||
Date fecinicioventa = pv.getFecinicioventa();
|
||||
Date fecfinventa = pv.getFecfinventa();
|
||||
|
||||
c.add(Restrictions.or(Restrictions.between("fecinicioventa", fecinicioventa, fecfinventa),
|
||||
(Restrictions.between("fecfinventa", fecinicioventa, fecfinventa))));
|
||||
c.add(Restrictions.or(Restrictions.between("fecinicioventa", fecinicioventa, fecfinventa),
|
||||
(Restrictions.between("fecfinventa", fecinicioventa, fecfinventa))));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean podeSalvar(Pricing pricing, PricingVigencia pricingVigencia,
|
||||
Date inicio, Date fim) {
|
||||
Calendar fecInicio = Calendar.getInstance();
|
||||
fecInicio.setTime(inicio);
|
||||
fecInicio.set(Calendar.MILLISECOND, 0);
|
||||
fecInicio.set(Calendar.SECOND, 0);
|
||||
@Override
|
||||
public Boolean podeSalvar(Pricing pricing, PricingVigencia pricingVigencia, Date inicio, Date fim) {
|
||||
Calendar fecInicio = Calendar.getInstance();
|
||||
fecInicio.setTime(inicio);
|
||||
fecInicio.set(Calendar.MILLISECOND, 0);
|
||||
fecInicio.set(Calendar.SECOND, 0);
|
||||
|
||||
Calendar fecFin = Calendar.getInstance();
|
||||
fecFin.setTime(fim);
|
||||
fecFin.set(Calendar.MILLISECOND, 0);
|
||||
fecFin.set(Calendar.SECOND, 0);
|
||||
|
||||
|
||||
|
||||
Criteria c = this.getSession().createCriteria(PricingVigencia.class);
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.ge("fecfinventa", fecInicio.getTime()));
|
||||
c.add(Restrictions.le("fecinicioventa", fecFin.getTime()));
|
||||
c.add(Restrictions.eq("pricing", pricing));
|
||||
if (pricingVigencia.getPricingvigenciaId() != null){
|
||||
c.add(Restrictions.ne("pricingvigenciaId",pricingVigencia.getPricingvigenciaId()));
|
||||
if (pricingVigencia.getPricingvigenciaId() != null) {
|
||||
c.add(Restrictions.ne("pricingvigenciaId", pricingVigencia.getPricingvigenciaId()));
|
||||
}
|
||||
|
||||
return c.list().isEmpty();
|
||||
}
|
||||
return c.list().isEmpty();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,9 @@ import javax.persistence.TemporalType;
|
|||
public class Pricing implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
public static final Integer ATIVO = 1;
|
||||
public static final Integer INATIVO = 2;
|
||||
public static final Integer EXCLUIDO = 0;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_SEQ")
|
||||
|
@ -57,7 +60,7 @@ public class Pricing implements Serializable {
|
|||
@Column(name = "INDCANCELABLE")
|
||||
private Boolean indcancelable;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
|
@ -200,11 +203,11 @@ public class Pricing implements Serializable {
|
|||
this.indcancelable = indcancelable;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
|
@ -224,13 +227,14 @@ public class Pricing implements Serializable {
|
|||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PricingOcupacion> getPricingOcupacionList() {
|
||||
public List<PricingOcupacion> getPricingOcupacionList(Integer activo) {
|
||||
List<PricingOcupacion> poList = new ArrayList<PricingOcupacion>();
|
||||
for (PricingOcupacion po : this.pricingOcupacionList) {
|
||||
if (po.getActivo() == Boolean.TRUE) {
|
||||
if (po.getActivo().equals(activo)) {
|
||||
poList.add(po);
|
||||
}
|
||||
}
|
||||
|
||||
return poList;
|
||||
}
|
||||
|
||||
|
@ -238,13 +242,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingOcupacionList = pricingOcupacionList;
|
||||
}
|
||||
|
||||
public List<PricingAsiento> getPricingAsientoList() {
|
||||
public List<PricingAsiento> getPricingAsientoList(Integer activo) {
|
||||
List<PricingAsiento> paList = new ArrayList<PricingAsiento>();
|
||||
for (PricingAsiento pa : this.pricingAsientoList) {
|
||||
if (pa.getActivo() == Boolean.TRUE) {
|
||||
if (pa.getActivo().equals(activo)) {
|
||||
paList.add(pa);
|
||||
}
|
||||
}
|
||||
|
||||
return paList;
|
||||
}
|
||||
|
||||
|
@ -252,13 +257,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingAsientoList = pricingAsientoList;
|
||||
}
|
||||
|
||||
public List<PricingMercado> getPricingMercadoList() {
|
||||
public List<PricingMercado> getPricingMercadoList(Integer activo) {
|
||||
List<PricingMercado> pmList = new ArrayList<PricingMercado>();
|
||||
for (PricingMercado pm : this.pricingMercadoList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
if (pm.getActivo().equals(activo)) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
|
||||
return pmList;
|
||||
}
|
||||
|
||||
|
@ -266,13 +272,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingMercadoList = pricingMercadoList;
|
||||
}
|
||||
|
||||
public List<PricingMarca> getPricingMarcaList() {
|
||||
public List<PricingMarca> getPricingMarcaList(Integer activo) {
|
||||
List<PricingMarca> pmList = new ArrayList<PricingMarca>();
|
||||
for (PricingMarca pm : this.pricingMarcaList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
if (pm.getActivo().equals(activo)) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
|
||||
return pmList;
|
||||
}
|
||||
|
||||
|
@ -288,13 +295,14 @@ public class Pricing implements Serializable {
|
|||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public List<PricingRuta> getPricingRutaList() {
|
||||
public List<PricingRuta> getPricingRutaList(Integer activo) {
|
||||
List<PricingRuta> prList = new ArrayList<PricingRuta>();
|
||||
for (PricingRuta pr : this.pricingRutaList) {
|
||||
if (pr.getActivo() == Boolean.TRUE) {
|
||||
if (pr.getActivo().equals(activo)) {
|
||||
prList.add(pr);
|
||||
}
|
||||
}
|
||||
|
||||
return prList;
|
||||
}
|
||||
|
||||
|
@ -302,13 +310,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingRutaList = pricingRutaList;
|
||||
}
|
||||
|
||||
public List<PricingDia> getPricingDiaList() {
|
||||
public List<PricingDia> getPricingDiaList(Integer activo) {
|
||||
List<PricingDia> pdList = new ArrayList<PricingDia>();
|
||||
for (PricingDia pd : this.pricingDiaList) {
|
||||
if (pd.getActivo() == Boolean.TRUE) {
|
||||
if (pd.getActivo().equals(activo)) {
|
||||
pdList.add(pd);
|
||||
}
|
||||
}
|
||||
|
||||
return pdList;
|
||||
}
|
||||
|
||||
|
@ -316,13 +325,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingDiaList = pricingDiaList;
|
||||
}
|
||||
|
||||
public List<PricingImporte> getPricingImporteList() {
|
||||
public List<PricingImporte> getPricingImporteList(Integer activo) {
|
||||
List<PricingImporte> piList = new ArrayList<PricingImporte>();
|
||||
for (PricingImporte pi : this.pricingImporteList) {
|
||||
if (pi.getActivo() == Boolean.TRUE) {
|
||||
if (pi.getActivo().equals(activo)) {
|
||||
piList.add(pi);
|
||||
}
|
||||
}
|
||||
|
||||
return piList;
|
||||
}
|
||||
|
||||
|
@ -330,13 +340,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingImporteList = pricingImporteList;
|
||||
}
|
||||
|
||||
public List<PricingTipoPtoVta> getPricingTipoptovtaList() {
|
||||
public List<PricingTipoPtoVta> getPricingTipoptovtaList(Integer activo) {
|
||||
List<PricingTipoPtoVta> ptList = new ArrayList<PricingTipoPtoVta>();
|
||||
for (PricingTipoPtoVta pt : this.pricingTipoptovtaList) {
|
||||
if (pt.getActivo() == Boolean.TRUE) {
|
||||
if (pt.getActivo().equals(activo)) {
|
||||
ptList.add(pt);
|
||||
}
|
||||
}
|
||||
|
||||
return ptList;
|
||||
}
|
||||
|
||||
|
@ -344,13 +355,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingTipoptovtaList = pricingTipoptovtaList;
|
||||
}
|
||||
|
||||
public List<PricingCategoria> getPricingCategoriaList() {
|
||||
public List<PricingCategoria> getPricingCategoriaList(Integer activo) {
|
||||
List<PricingCategoria> pcList = new ArrayList<PricingCategoria>();
|
||||
for (PricingCategoria pc : this.pricingCategoriaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
if (pc.getActivo().equals(activo)) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
|
||||
return pcList;
|
||||
}
|
||||
|
||||
|
@ -358,15 +370,16 @@ public class Pricing implements Serializable {
|
|||
this.pricingCategoriaList = pricingCategoriaList;
|
||||
}
|
||||
|
||||
public List<PricingVigencia> getPricingVigenciaList() {
|
||||
public List<PricingVigencia> getPricingVigenciaList(Integer activo) {
|
||||
List<PricingVigencia> pvList = new ArrayList<PricingVigencia>();
|
||||
if (this.pricingVigenciaList != null){
|
||||
if (this.pricingVigenciaList != null) {
|
||||
for (PricingVigencia pv : this.pricingVigenciaList) {
|
||||
if (pv.getActivo() == Boolean.TRUE) {
|
||||
if (pv.getActivo().equals(activo)) {
|
||||
pvList.add(pv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return pvList;
|
||||
}
|
||||
|
||||
|
@ -374,13 +387,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingVigenciaList = pricingVigenciaList;
|
||||
}
|
||||
|
||||
public List<PricingClase> getPricingClaseList() {
|
||||
public List<PricingClase> getPricingClaseList(Integer activo) {
|
||||
List<PricingClase> pcList = new ArrayList<PricingClase>();
|
||||
for (PricingClase pc : this.pricingClaseList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
if (pc.getActivo().equals(activo)) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
|
||||
return pcList;
|
||||
}
|
||||
|
||||
|
@ -388,17 +402,18 @@ public class Pricing implements Serializable {
|
|||
this.pricingClaseList = pricingClaseList;
|
||||
}
|
||||
|
||||
public List<PricingCorrida> getPricingCorridaList() {
|
||||
|
||||
public List<PricingCorrida> getPricingCorridaList(Integer activo) {
|
||||
List<PricingCorrida> pcList = new ArrayList<PricingCorrida>();
|
||||
if (pricingCorridaList == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (PricingCorrida pc : this.pricingCorridaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
if (pc.getActivo().equals(activo)) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
|
||||
return pcList;
|
||||
}
|
||||
|
||||
|
@ -406,13 +421,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingCorridaList = pricingCorridaList;
|
||||
}
|
||||
|
||||
public List<PricingPuntoVenta> getPricingPuntoventaList() {
|
||||
public List<PricingPuntoVenta> getPricingPuntoventaList(Integer activo) {
|
||||
List<PricingPuntoVenta> ppList = new ArrayList<PricingPuntoVenta>();
|
||||
for (PricingPuntoVenta pp : this.pricingPuntoventaList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
if (pp.getActivo().equals(activo)) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
|
||||
return ppList;
|
||||
}
|
||||
|
||||
|
@ -420,13 +436,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingPuntoventaList = pricingPuntoventaList;
|
||||
}
|
||||
|
||||
public List<PricingAnticipacion> getPricingAnticipacionList() {
|
||||
public List<PricingAnticipacion> getPricingAnticipacionList(Integer activo) {
|
||||
List<PricingAnticipacion> ppList = new ArrayList<PricingAnticipacion>();
|
||||
for (PricingAnticipacion pp : this.pricingAnticipacionList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
if (pp.getActivo().equals(activo)) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
|
||||
return ppList;
|
||||
}
|
||||
|
||||
|
@ -434,13 +451,14 @@ public class Pricing implements Serializable {
|
|||
this.pricingAnticipacionList = pricingAnticipacionList;
|
||||
}
|
||||
|
||||
public List<PricingTipoServicio> getPricingTipoServicioList() {
|
||||
public List<PricingTipoServicio> getPricingTipoServicioList(Integer status) {
|
||||
List<PricingTipoServicio> ppList = new ArrayList<PricingTipoServicio>();
|
||||
for (PricingTipoServicio pp : this.pricingTipoServicioList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
if (pp.getActivo().equals(status)) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
|
||||
return ppList;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,128 +29,127 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_ANTICIPACION")
|
||||
public class PricingAnticipacion implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_ANTICIPACION_SEQ")
|
||||
@Column(name = "PRICINGANTICIPACION_ID")
|
||||
private Integer pricinganticipacionId;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CANTDIASMIN")
|
||||
private Integer cantdiasmin;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CANTDIASMAX")
|
||||
private Integer cantdiasmax;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "PORCPRICING")
|
||||
private BigDecimal porcpricing;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_ANTICIPACION_SEQ")
|
||||
@Column(name = "PRICINGANTICIPACION_ID")
|
||||
private Integer pricinganticipacionId;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CANTDIASMIN")
|
||||
private Integer cantdiasmin;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CANTDIASMAX")
|
||||
private Integer cantdiasmax;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "PORCPRICING")
|
||||
private BigDecimal porcpricing;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingAnticipacion() {
|
||||
}
|
||||
public PricingAnticipacion() {
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public PricingAnticipacion(Integer pricinganticipacionId) {
|
||||
this.pricinganticipacionId = pricinganticipacionId;
|
||||
}
|
||||
public PricingAnticipacion(Integer pricinganticipacionId) {
|
||||
this.pricinganticipacionId = pricinganticipacionId;
|
||||
}
|
||||
|
||||
public Integer getPricinganticipacionId() {
|
||||
return pricinganticipacionId;
|
||||
}
|
||||
public Integer getPricinganticipacionId() {
|
||||
return pricinganticipacionId;
|
||||
}
|
||||
|
||||
public void setPricinganticipacionId(Integer pricinganticipacionId) {
|
||||
this.pricinganticipacionId = pricinganticipacionId;
|
||||
}
|
||||
public void setPricinganticipacionId(Integer pricinganticipacionId) {
|
||||
this.pricinganticipacionId = pricinganticipacionId;
|
||||
}
|
||||
|
||||
public Integer getCantdiasmax() {
|
||||
return cantdiasmax;
|
||||
}
|
||||
public Integer getCantdiasmax() {
|
||||
return cantdiasmax;
|
||||
}
|
||||
|
||||
public void setCantdiasmax(Integer cantdiasmax) {
|
||||
this.cantdiasmax = cantdiasmax;
|
||||
}
|
||||
public void setCantdiasmax(Integer cantdiasmax) {
|
||||
this.cantdiasmax = cantdiasmax;
|
||||
}
|
||||
|
||||
public Integer getCantdiasmin() {
|
||||
return cantdiasmin;
|
||||
}
|
||||
public Integer getCantdiasmin() {
|
||||
return cantdiasmin;
|
||||
}
|
||||
|
||||
public void setCantdiasmin(Integer cantdiasmin) {
|
||||
this.cantdiasmin = cantdiasmin;
|
||||
}
|
||||
public void setCantdiasmin(Integer cantdiasmin) {
|
||||
this.cantdiasmin = cantdiasmin;
|
||||
}
|
||||
|
||||
public BigDecimal getPorcpricing() {
|
||||
return porcpricing;
|
||||
}
|
||||
public BigDecimal getPorcpricing() {
|
||||
return porcpricing;
|
||||
}
|
||||
|
||||
public void setPorcpricing(BigDecimal porcpricing) {
|
||||
this.porcpricing = porcpricing;
|
||||
}
|
||||
public void setPorcpricing(BigDecimal porcpricing) {
|
||||
this.porcpricing = porcpricing;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricinganticipacionId != null ? pricinganticipacionId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricinganticipacionId != null ? pricinganticipacionId.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 PricingAnticipacion)) {
|
||||
return false;
|
||||
}
|
||||
PricingAnticipacion other = (PricingAnticipacion) object;
|
||||
if ((this.pricinganticipacionId == null && other.pricinganticipacionId != null) || (this.pricinganticipacionId != null && !this.pricinganticipacionId.equals(other.pricinganticipacionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingAnticipacion)) {
|
||||
return false;
|
||||
}
|
||||
PricingAnticipacion other = (PricingAnticipacion) object;
|
||||
if ((this.pricinganticipacionId == null && other.pricinganticipacionId != null) || (this.pricinganticipacionId != null && !this.pricinganticipacionId.equals(other.pricinganticipacionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PricingAnticipacion[pricinganticipacionId=" + pricinganticipacionId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PricingAnticipacion[pricinganticipacionId=" + pricinganticipacionId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,122 +29,121 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_ASIENTO")
|
||||
public class PricingAsiento implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_ASIENTO_SEQ")
|
||||
@Column(name = "PRICINGASIENTO_ID")
|
||||
private Integer pricingasientoId;
|
||||
@Column(name = "NUMEASIENTO")
|
||||
private String numeasiento;
|
||||
@Column(name = "NOMBIMAGEN")
|
||||
private String nombImagen;
|
||||
@Column(name = "PORCENTAJE")
|
||||
private BigDecimal porcentaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_ASIENTO_SEQ")
|
||||
@Column(name = "PRICINGASIENTO_ID")
|
||||
private Integer pricingasientoId;
|
||||
@Column(name = "NUMEASIENTO")
|
||||
private String numeasiento;
|
||||
@Column(name = "NOMBIMAGEN")
|
||||
private String nombImagen;
|
||||
@Column(name = "PORCENTAJE")
|
||||
private BigDecimal porcentaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingAsiento() {
|
||||
}
|
||||
public PricingAsiento() {
|
||||
}
|
||||
|
||||
public PricingAsiento(Integer pricingasientoId) {
|
||||
this.pricingasientoId = pricingasientoId;
|
||||
}
|
||||
public PricingAsiento(Integer pricingasientoId) {
|
||||
this.pricingasientoId = pricingasientoId;
|
||||
}
|
||||
|
||||
public Integer getPricingasientoId() {
|
||||
return pricingasientoId;
|
||||
}
|
||||
public Integer getPricingasientoId() {
|
||||
return pricingasientoId;
|
||||
}
|
||||
|
||||
public void setPricingasientoId(Integer pricingasientoId) {
|
||||
this.pricingasientoId = pricingasientoId;
|
||||
}
|
||||
public void setPricingasientoId(Integer pricingasientoId) {
|
||||
this.pricingasientoId = pricingasientoId;
|
||||
}
|
||||
|
||||
public String getNumeasiento() {
|
||||
return numeasiento;
|
||||
}
|
||||
public String getNumeasiento() {
|
||||
return numeasiento;
|
||||
}
|
||||
|
||||
public void setNumeasiento(String numeasiento) {
|
||||
this.numeasiento = numeasiento;
|
||||
}
|
||||
public void setNumeasiento(String numeasiento) {
|
||||
this.numeasiento = numeasiento;
|
||||
}
|
||||
|
||||
public BigDecimal getPorcentaje() {
|
||||
return porcentaje;
|
||||
}
|
||||
public BigDecimal getPorcentaje() {
|
||||
return porcentaje;
|
||||
}
|
||||
|
||||
public void setPorcentaje(BigDecimal porcentaje) {
|
||||
this.porcentaje = porcentaje;
|
||||
}
|
||||
public void setPorcentaje(BigDecimal porcentaje) {
|
||||
this.porcentaje = porcentaje;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public String getNombImagen() {
|
||||
return nombImagen;
|
||||
}
|
||||
public String getNombImagen() {
|
||||
return nombImagen;
|
||||
}
|
||||
|
||||
public void setNombImagen(String nombImagen) {
|
||||
this.nombImagen = nombImagen;
|
||||
}
|
||||
public void setNombImagen(String nombImagen) {
|
||||
this.nombImagen = nombImagen;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingasientoId != null ? pricingasientoId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingasientoId != null ? pricingasientoId.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 PricingAsiento)) {
|
||||
return false;
|
||||
}
|
||||
PricingAsiento other = (PricingAsiento) object;
|
||||
if ((this.pricingasientoId == null && other.pricingasientoId != null) || (this.pricingasientoId != null && !this.pricingasientoId.equals(other.pricingasientoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingAsiento)) {
|
||||
return false;
|
||||
}
|
||||
PricingAsiento other = (PricingAsiento) object;
|
||||
if ((this.pricingasientoId == null && other.pricingasientoId != null) || (this.pricingasientoId != null && !this.pricingasientoId.equals(other.pricingasientoId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingAsiento[pricingasientoId=" + pricingasientoId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingAsiento[pricingasientoId=" + pricingasientoId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_CATEGORIA")
|
||||
public class PricingCategoria implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CATEGORIA_SEQ")
|
||||
@Column(name = "PRICINGCATEGORIA_ID")
|
||||
private Integer pricingcategoriaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CATEGORIA_ID", referencedColumnName = "CATEGORIA_ID")
|
||||
@ManyToOne
|
||||
private Categoria categoria;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CATEGORIA_SEQ")
|
||||
@Column(name = "PRICINGCATEGORIA_ID")
|
||||
private Integer pricingcategoriaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CATEGORIA_ID", referencedColumnName = "CATEGORIA_ID")
|
||||
@ManyToOne
|
||||
private Categoria categoria;
|
||||
|
||||
public PricingCategoria() {
|
||||
}
|
||||
public PricingCategoria() {
|
||||
}
|
||||
|
||||
public PricingCategoria(Integer pricingcategoriaId) {
|
||||
this.pricingcategoriaId = pricingcategoriaId;
|
||||
}
|
||||
public PricingCategoria(Integer pricingcategoriaId) {
|
||||
this.pricingcategoriaId = pricingcategoriaId;
|
||||
}
|
||||
|
||||
public Integer getPricingcategoriaId() {
|
||||
return pricingcategoriaId;
|
||||
}
|
||||
public Integer getPricingcategoriaId() {
|
||||
return pricingcategoriaId;
|
||||
}
|
||||
|
||||
public void setPricingcategoriaId(Integer pricingcategoriaId) {
|
||||
this.pricingcategoriaId = pricingcategoriaId;
|
||||
}
|
||||
public void setPricingcategoriaId(Integer pricingcategoriaId) {
|
||||
this.pricingcategoriaId = pricingcategoriaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public Categoria getCategoria() {
|
||||
return categoria;
|
||||
}
|
||||
public Categoria getCategoria() {
|
||||
return categoria;
|
||||
}
|
||||
|
||||
public void setCategoria(Categoria categoria) {
|
||||
this.categoria = categoria;
|
||||
}
|
||||
public void setCategoria(Categoria categoria) {
|
||||
this.categoria = categoria;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingcategoriaId != null ? pricingcategoriaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingcategoriaId != null ? pricingcategoriaId.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 PricingCategoria)) {
|
||||
return false;
|
||||
}
|
||||
PricingCategoria other = (PricingCategoria) object;
|
||||
if ((this.pricingcategoriaId == null && other.pricingcategoriaId != null) || (this.pricingcategoriaId != null && !this.pricingcategoriaId.equals(other.pricingcategoriaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingCategoria)) {
|
||||
return false;
|
||||
}
|
||||
PricingCategoria other = (PricingCategoria) object;
|
||||
if ((this.pricingcategoriaId == null && other.pricingcategoriaId != null) || (this.pricingcategoriaId != null && !this.pricingcategoriaId.equals(other.pricingcategoriaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingCategoria[pricingcategoriaId=" + pricingcategoriaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingCategoria[pricingcategoriaId=" + pricingcategoriaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_CLASE")
|
||||
public class PricingClase implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CLASE_SEQ")
|
||||
@Column(name = "PRICINGCLASE_ID")
|
||||
private Integer pricingclaseId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CLASE_SEQ")
|
||||
@Column(name = "PRICINGCLASE_ID")
|
||||
private Integer pricingclaseId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
|
||||
public PricingClase() {
|
||||
}
|
||||
public PricingClase() {
|
||||
}
|
||||
|
||||
public PricingClase(Integer pricingclaseId) {
|
||||
this.pricingclaseId = pricingclaseId;
|
||||
}
|
||||
public PricingClase(Integer pricingclaseId) {
|
||||
this.pricingclaseId = pricingclaseId;
|
||||
}
|
||||
|
||||
public Integer getPricingclaseId() {
|
||||
return pricingclaseId;
|
||||
}
|
||||
public Integer getPricingclaseId() {
|
||||
return pricingclaseId;
|
||||
}
|
||||
|
||||
public void setPricingclaseId(Integer pricingclaseId) {
|
||||
this.pricingclaseId = pricingclaseId;
|
||||
}
|
||||
public void setPricingclaseId(Integer pricingclaseId) {
|
||||
this.pricingclaseId = pricingclaseId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingclaseId != null ? pricingclaseId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingclaseId != null ? pricingclaseId.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 PricingClase)) {
|
||||
return false;
|
||||
}
|
||||
PricingClase other = (PricingClase) object;
|
||||
if ((this.pricingclaseId == null && other.pricingclaseId != null) || (this.pricingclaseId != null && !this.pricingclaseId.equals(other.pricingclaseId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingClase)) {
|
||||
return false;
|
||||
}
|
||||
PricingClase other = (PricingClase) object;
|
||||
if ((this.pricingclaseId == null && other.pricingclaseId != null) || (this.pricingclaseId != null && !this.pricingclaseId.equals(other.pricingclaseId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingClase[pricingclaseId=" + pricingclaseId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingClase[pricingclaseId=" + pricingclaseId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,104 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@SequenceGenerator(name = "PRICING_CORRIDA_SEQ", sequenceName = "PRICING_CORRIDA_SEQ", allocationSize = 1)
|
||||
@Table(name = "PRICING_CORRIDA")
|
||||
public class PricingCorrida implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CORRIDA_SEQ")
|
||||
@Column(name = "PRICINGCORRIDA_ID")
|
||||
private Integer pricingcorridaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID")
|
||||
@ManyToOne
|
||||
private CorridaCtrl corridaCtrl;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_CORRIDA_SEQ")
|
||||
@Column(name = "PRICINGCORRIDA_ID")
|
||||
private Integer pricingcorridaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "CORRIDA_ID", referencedColumnName = "CORRIDA_ID")
|
||||
@ManyToOne
|
||||
private CorridaCtrl corridaCtrl;
|
||||
|
||||
public PricingCorrida() {
|
||||
}
|
||||
public PricingCorrida() {
|
||||
}
|
||||
|
||||
public PricingCorrida(Integer pricingcorridaId) {
|
||||
this.pricingcorridaId = pricingcorridaId;
|
||||
}
|
||||
public PricingCorrida(Integer pricingcorridaId) {
|
||||
this.pricingcorridaId = pricingcorridaId;
|
||||
}
|
||||
|
||||
public Integer getPricingcorridaId() {
|
||||
return pricingcorridaId;
|
||||
}
|
||||
public Integer getPricingcorridaId() {
|
||||
return pricingcorridaId;
|
||||
}
|
||||
|
||||
public void setPricingcorridaId(Integer pricingcorridaId) {
|
||||
this.pricingcorridaId = pricingcorridaId;
|
||||
}
|
||||
public void setPricingcorridaId(Integer pricingcorridaId) {
|
||||
this.pricingcorridaId = pricingcorridaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public CorridaCtrl getCorridaCtrl() {
|
||||
return corridaCtrl;
|
||||
}
|
||||
public CorridaCtrl getCorridaCtrl() {
|
||||
return corridaCtrl;
|
||||
}
|
||||
|
||||
public void setCorridaCtrl(CorridaCtrl corridaCtrl) {
|
||||
this.corridaCtrl = corridaCtrl;
|
||||
}
|
||||
public void setCorridaCtrl(CorridaCtrl corridaCtrl) {
|
||||
this.corridaCtrl = corridaCtrl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingcorridaId != null ? pricingcorridaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingcorridaId != null ? pricingcorridaId.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 PricingCorrida)) {
|
||||
return false;
|
||||
}
|
||||
PricingCorrida other = (PricingCorrida) object;
|
||||
if ((this.pricingcorridaId == null && other.pricingcorridaId != null) || (this.pricingcorridaId != null && !this.pricingcorridaId.equals(other.pricingcorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingCorrida[pricingcorridaId=" + pricingcorridaId + "]";
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingCorrida)) {
|
||||
return false;
|
||||
}
|
||||
PricingCorrida other = (PricingCorrida) object;
|
||||
if ((this.pricingcorridaId == null && other.pricingcorridaId != null) || (this.pricingcorridaId != null && !this.pricingcorridaId.equals(other.pricingcorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingCorrida[pricingcorridaId=" + pricingcorridaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,184 +28,185 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_DIA")
|
||||
public class PricingDia implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_DIA_SEQ")
|
||||
@Column(name = "PRICINGDIA_ID")
|
||||
private Integer pricingdiaId;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "HORARIOINICIO")
|
||||
@Temporal(TemporalType.TIMESTAMP)//Fue cambido de TIME para TIMESTAMP porque cuando está time el año que se salva el 1900 y no 1970.
|
||||
private Date horarioinicio;
|
||||
@Column(name = "HORARIOFIN")
|
||||
@Temporal(TemporalType.TIMESTAMP)//Fue cambido de TIME para TIMESTAMP porque cuando está time el año que se salva el 1900 y no 1970.
|
||||
private Date horariofin;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_DIA_SEQ")
|
||||
@Column(name = "PRICINGDIA_ID")
|
||||
private Integer pricingdiaId;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "HORARIOINICIO")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
// Fue cambido de TIME para TIMESTAMP porque cuando está time el año que se salva el 1900 y no 1970.
|
||||
private Date horarioinicio;
|
||||
@Column(name = "HORARIOFIN")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
// Fue cambido de TIME para TIMESTAMP porque cuando está time el año que se salva el 1900 y no 1970.
|
||||
private Date horariofin;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingDia() {
|
||||
}
|
||||
public PricingDia() {
|
||||
}
|
||||
|
||||
public PricingDia(Integer pricingdiaId) {
|
||||
this.pricingdiaId = pricingdiaId;
|
||||
}
|
||||
public PricingDia(Integer pricingdiaId) {
|
||||
this.pricingdiaId = pricingdiaId;
|
||||
}
|
||||
|
||||
public Integer getPricingdiaId() {
|
||||
return pricingdiaId;
|
||||
}
|
||||
public Integer getPricingdiaId() {
|
||||
return pricingdiaId;
|
||||
}
|
||||
|
||||
public void setPricingdiaId(Integer pricingdiaId) {
|
||||
this.pricingdiaId = pricingdiaId;
|
||||
}
|
||||
public void setPricingdiaId(Integer pricingdiaId) {
|
||||
this.pricingdiaId = pricingdiaId;
|
||||
}
|
||||
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
|
||||
public Date getHorarioinicio() {
|
||||
return horarioinicio;
|
||||
}
|
||||
public Date getHorarioinicio() {
|
||||
return horarioinicio;
|
||||
}
|
||||
|
||||
public void setHorarioinicio(Date horarioinicio) {
|
||||
this.horarioinicio = horarioinicio;
|
||||
}
|
||||
public void setHorarioinicio(Date horarioinicio) {
|
||||
this.horarioinicio = horarioinicio;
|
||||
}
|
||||
|
||||
public Date getHorariofin() {
|
||||
return horariofin;
|
||||
}
|
||||
public Date getHorariofin() {
|
||||
return horariofin;
|
||||
}
|
||||
|
||||
public void setHorariofin(Date horariofin) {
|
||||
this.horariofin = horariofin;
|
||||
}
|
||||
public void setHorariofin(Date horariofin) {
|
||||
this.horariofin = horariofin;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingdiaId != null ? pricingdiaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingdiaId != null ? pricingdiaId.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 PricingDia)) {
|
||||
return false;
|
||||
}
|
||||
PricingDia other = (PricingDia) object;
|
||||
if ((this.pricingdiaId == null && other.pricingdiaId != null) || (this.pricingdiaId != null && !this.pricingdiaId.equals(other.pricingdiaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingDia)) {
|
||||
return false;
|
||||
}
|
||||
PricingDia other = (PricingDia) object;
|
||||
if ((this.pricingdiaId == null && other.pricingdiaId != null) || (this.pricingdiaId != null && !this.pricingdiaId.equals(other.pricingdiaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingDia[pricingdiaId=" + pricingdiaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingDia[pricingdiaId=" + pricingdiaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,113 +29,112 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_IMPORTE")
|
||||
public class PricingImporte implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_IMPORTE_SEQ")
|
||||
@Column(name = "PRICINGIMPORTE_ID")
|
||||
private Integer pricingimporteId;
|
||||
@Column(name = "IMPORTE")
|
||||
private BigDecimal importe;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "MONEDA_ID", referencedColumnName = "MONEDA_ID")
|
||||
@ManyToOne
|
||||
private Moneda moneda;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_IMPORTE_SEQ")
|
||||
@Column(name = "PRICINGIMPORTE_ID")
|
||||
private Integer pricingimporteId;
|
||||
@Column(name = "IMPORTE")
|
||||
private BigDecimal importe;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "MONEDA_ID", referencedColumnName = "MONEDA_ID")
|
||||
@ManyToOne
|
||||
private Moneda moneda;
|
||||
|
||||
public PricingImporte() {
|
||||
}
|
||||
public PricingImporte() {
|
||||
}
|
||||
|
||||
public PricingImporte(Integer pricingimporteId) {
|
||||
this.pricingimporteId = pricingimporteId;
|
||||
}
|
||||
public PricingImporte(Integer pricingimporteId) {
|
||||
this.pricingimporteId = pricingimporteId;
|
||||
}
|
||||
|
||||
public Integer getPricingimporteId() {
|
||||
return pricingimporteId;
|
||||
}
|
||||
public Integer getPricingimporteId() {
|
||||
return pricingimporteId;
|
||||
}
|
||||
|
||||
public void setPricingimporteId(Integer pricingimporteId) {
|
||||
this.pricingimporteId = pricingimporteId;
|
||||
}
|
||||
public void setPricingimporteId(Integer pricingimporteId) {
|
||||
this.pricingimporteId = pricingimporteId;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public Moneda getMoneda() {
|
||||
return moneda;
|
||||
}
|
||||
public Moneda getMoneda() {
|
||||
return moneda;
|
||||
}
|
||||
|
||||
public void setMoneda(Moneda moneda) {
|
||||
this.moneda = moneda;
|
||||
}
|
||||
public void setMoneda(Moneda moneda) {
|
||||
this.moneda = moneda;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingimporteId != null ? pricingimporteId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingimporteId != null ? pricingimporteId.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 PricingImporte)) {
|
||||
return false;
|
||||
}
|
||||
PricingImporte other = (PricingImporte) object;
|
||||
if ((this.pricingimporteId == null && other.pricingimporteId != null) || (this.pricingimporteId != null && !this.pricingimporteId.equals(other.pricingimporteId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingImporte)) {
|
||||
return false;
|
||||
}
|
||||
PricingImporte other = (PricingImporte) object;
|
||||
if ((this.pricingimporteId == null && other.pricingimporteId != null) || (this.pricingimporteId != null && !this.pricingimporteId.equals(other.pricingimporteId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingImporte[pricingimporteId=" + pricingimporteId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingImporte[pricingimporteId=" + pricingimporteId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_MARCA")
|
||||
public class PricingMarca implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_MARCA_SEQ")
|
||||
@Column(name = "PRICINGMARCA_ID")
|
||||
private Integer pricingmarcaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_MARCA_SEQ")
|
||||
@Column(name = "PRICINGMARCA_ID")
|
||||
private Integer pricingmarcaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
|
||||
public PricingMarca() {
|
||||
}
|
||||
public PricingMarca() {
|
||||
}
|
||||
|
||||
public PricingMarca(Integer pricingmarcaId) {
|
||||
this.pricingmarcaId = pricingmarcaId;
|
||||
}
|
||||
public PricingMarca(Integer pricingmarcaId) {
|
||||
this.pricingmarcaId = pricingmarcaId;
|
||||
}
|
||||
|
||||
public Integer getPricingmarcaId() {
|
||||
return pricingmarcaId;
|
||||
}
|
||||
public Integer getPricingmarcaId() {
|
||||
return pricingmarcaId;
|
||||
}
|
||||
|
||||
public void setPricingmarcaId(Integer pricingmarcaId) {
|
||||
this.pricingmarcaId = pricingmarcaId;
|
||||
}
|
||||
public void setPricingmarcaId(Integer pricingmarcaId) {
|
||||
this.pricingmarcaId = pricingmarcaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingmarcaId != null ? pricingmarcaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingmarcaId != null ? pricingmarcaId.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 PricingMarca)) {
|
||||
return false;
|
||||
}
|
||||
PricingMarca other = (PricingMarca) object;
|
||||
if ((this.pricingmarcaId == null && other.pricingmarcaId != null) || (this.pricingmarcaId != null && !this.pricingmarcaId.equals(other.pricingmarcaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingMarca)) {
|
||||
return false;
|
||||
}
|
||||
PricingMarca other = (PricingMarca) object;
|
||||
if ((this.pricingmarcaId == null && other.pricingmarcaId != null) || (this.pricingmarcaId != null && !this.pricingmarcaId.equals(other.pricingmarcaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingMarca[pricingmarcaId=" + pricingmarcaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingMarca[pricingmarcaId=" + pricingmarcaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,114 +28,113 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_MERCADO")
|
||||
public class PricingMercado implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_MERCADO_SEQ")
|
||||
@Column(name = "PRICINGPARADA_ID")
|
||||
private Integer pricingparadaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origen;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_MERCADO_SEQ")
|
||||
@Column(name = "PRICINGPARADA_ID")
|
||||
private Integer pricingparadaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada origen;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
|
||||
public PricingMercado() {
|
||||
}
|
||||
public PricingMercado() {
|
||||
}
|
||||
|
||||
public PricingMercado(Integer pricingparadaId) {
|
||||
this.pricingparadaId = pricingparadaId;
|
||||
}
|
||||
public PricingMercado(Integer pricingparadaId) {
|
||||
this.pricingparadaId = pricingparadaId;
|
||||
}
|
||||
|
||||
public Integer getPricingparadaId() {
|
||||
return pricingparadaId;
|
||||
}
|
||||
public Integer getPricingparadaId() {
|
||||
return pricingparadaId;
|
||||
}
|
||||
|
||||
public void setPricingparadaId(Integer pricingparadaId) {
|
||||
this.pricingparadaId = pricingparadaId;
|
||||
}
|
||||
public void setPricingparadaId(Integer pricingparadaId) {
|
||||
this.pricingparadaId = pricingparadaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
public Parada getDestino() {
|
||||
return destino;
|
||||
}
|
||||
|
||||
public void setDestino(Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
public void setDestino(Parada destino) {
|
||||
this.destino = destino;
|
||||
}
|
||||
|
||||
public Parada getOrigen() {
|
||||
return origen;
|
||||
}
|
||||
public Parada getOrigen() {
|
||||
return origen;
|
||||
}
|
||||
|
||||
public void setOrigen(Parada origen) {
|
||||
this.origen = origen;
|
||||
}
|
||||
public void setOrigen(Parada origen) {
|
||||
this.origen = origen;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingparadaId != null ? pricingparadaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingparadaId != null ? pricingparadaId.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 PricingMercado)) {
|
||||
return false;
|
||||
}
|
||||
PricingMercado other = (PricingMercado) object;
|
||||
if ((this.pricingparadaId == null && other.pricingparadaId != null) || (this.pricingparadaId != null && !this.pricingparadaId.equals(other.pricingparadaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingMercado)) {
|
||||
return false;
|
||||
}
|
||||
PricingMercado other = (PricingMercado) object;
|
||||
if ((this.pricingparadaId == null && other.pricingparadaId != null) || (this.pricingparadaId != null && !this.pricingparadaId.equals(other.pricingparadaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingMercado[pricingparadaId=" + pricingparadaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingMercado[pricingparadaId=" + pricingparadaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,122 +29,121 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_OCUPACION")
|
||||
public class PricingOcupacion implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_OCUPACION_SEQ")
|
||||
@Column(name = "PRICINGOCUPACION_ID")
|
||||
private Integer pricingocupacionId;
|
||||
@Column(name = "OCUPACIONINICIAL")
|
||||
private BigDecimal ocupacioninicial;
|
||||
@Column(name = "OCUPACIONFINAL")
|
||||
private BigDecimal ocupacionfinal;
|
||||
@Column(name = "PORCENTAJE")
|
||||
private BigDecimal porcentaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_OCUPACION_SEQ")
|
||||
@Column(name = "PRICINGOCUPACION_ID")
|
||||
private Integer pricingocupacionId;
|
||||
@Column(name = "OCUPACIONINICIAL")
|
||||
private BigDecimal ocupacioninicial;
|
||||
@Column(name = "OCUPACIONFINAL")
|
||||
private BigDecimal ocupacionfinal;
|
||||
@Column(name = "PORCENTAJE")
|
||||
private BigDecimal porcentaje;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingOcupacion() {
|
||||
}
|
||||
public PricingOcupacion() {
|
||||
}
|
||||
|
||||
public PricingOcupacion(Integer pricingocupacionId) {
|
||||
this.pricingocupacionId = pricingocupacionId;
|
||||
}
|
||||
public PricingOcupacion(Integer pricingocupacionId) {
|
||||
this.pricingocupacionId = pricingocupacionId;
|
||||
}
|
||||
|
||||
public Integer getPricingocupacionId() {
|
||||
return pricingocupacionId;
|
||||
}
|
||||
public Integer getPricingocupacionId() {
|
||||
return pricingocupacionId;
|
||||
}
|
||||
|
||||
public void setPricingocupacionId(Integer pricingocupacionId) {
|
||||
this.pricingocupacionId = pricingocupacionId;
|
||||
}
|
||||
public void setPricingocupacionId(Integer pricingocupacionId) {
|
||||
this.pricingocupacionId = pricingocupacionId;
|
||||
}
|
||||
|
||||
public BigDecimal getOcupacioninicial() {
|
||||
return ocupacioninicial;
|
||||
}
|
||||
public BigDecimal getOcupacioninicial() {
|
||||
return ocupacioninicial;
|
||||
}
|
||||
|
||||
public void setOcupacioninicial(BigDecimal ocupacioninicial) {
|
||||
this.ocupacioninicial = ocupacioninicial;
|
||||
}
|
||||
public void setOcupacioninicial(BigDecimal ocupacioninicial) {
|
||||
this.ocupacioninicial = ocupacioninicial;
|
||||
}
|
||||
|
||||
public BigDecimal getOcupacionfinal() {
|
||||
return ocupacionfinal;
|
||||
}
|
||||
public BigDecimal getOcupacionfinal() {
|
||||
return ocupacionfinal;
|
||||
}
|
||||
|
||||
public void setOcupacionfinal(BigDecimal ocupacionfinal) {
|
||||
this.ocupacionfinal = ocupacionfinal;
|
||||
}
|
||||
public void setOcupacionfinal(BigDecimal ocupacionfinal) {
|
||||
this.ocupacionfinal = ocupacionfinal;
|
||||
}
|
||||
|
||||
public BigDecimal getPorcentaje() {
|
||||
return porcentaje;
|
||||
}
|
||||
public BigDecimal getPorcentaje() {
|
||||
return porcentaje;
|
||||
}
|
||||
|
||||
public void setPorcentaje(BigDecimal porcentaje) {
|
||||
this.porcentaje = porcentaje;
|
||||
}
|
||||
public void setPorcentaje(BigDecimal porcentaje) {
|
||||
this.porcentaje = porcentaje;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingocupacionId != null ? pricingocupacionId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingocupacionId != null ? pricingocupacionId.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 PricingOcupacion)) {
|
||||
return false;
|
||||
}
|
||||
PricingOcupacion other = (PricingOcupacion) object;
|
||||
if ((this.pricingocupacionId == null && other.pricingocupacionId != null) || (this.pricingocupacionId != null && !this.pricingocupacionId.equals(other.pricingocupacionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingOcupacion)) {
|
||||
return false;
|
||||
}
|
||||
PricingOcupacion other = (PricingOcupacion) object;
|
||||
if ((this.pricingocupacionId == null && other.pricingocupacionId != null) || (this.pricingocupacionId != null && !this.pricingocupacionId.equals(other.pricingocupacionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingOcupacion[pricingocupacionId=" + pricingocupacionId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingOcupacion[pricingocupacionId=" + pricingocupacionId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_PUNTOVENTA")
|
||||
public class PricingPuntoVenta implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_PUNTOVENTA_SEQ")
|
||||
@Column(name = "PRICINGPTOVTA_ID")
|
||||
private Integer pricingptovtaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
private PuntoVenta puntoVenta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_PUNTOVENTA_SEQ")
|
||||
@Column(name = "PRICINGPTOVTA_ID")
|
||||
private Integer pricingptovtaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
private PuntoVenta puntoVenta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingPuntoVenta() {
|
||||
}
|
||||
public PricingPuntoVenta() {
|
||||
}
|
||||
|
||||
public PricingPuntoVenta(Integer pricingptovtaId) {
|
||||
this.pricingptovtaId = pricingptovtaId;
|
||||
}
|
||||
public PricingPuntoVenta(Integer pricingptovtaId) {
|
||||
this.pricingptovtaId = pricingptovtaId;
|
||||
}
|
||||
|
||||
public Integer getPricingptovtaId() {
|
||||
return pricingptovtaId;
|
||||
}
|
||||
public Integer getPricingptovtaId() {
|
||||
return pricingptovtaId;
|
||||
}
|
||||
|
||||
public void setPricingptovtaId(Integer pricingptovtaId) {
|
||||
this.pricingptovtaId = pricingptovtaId;
|
||||
}
|
||||
public void setPricingptovtaId(Integer pricingptovtaId) {
|
||||
this.pricingptovtaId = pricingptovtaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoVenta() {
|
||||
return puntoVenta;
|
||||
}
|
||||
public PuntoVenta getPuntoVenta() {
|
||||
return puntoVenta;
|
||||
}
|
||||
|
||||
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
||||
this.puntoVenta = puntoVenta;
|
||||
}
|
||||
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
||||
this.puntoVenta = puntoVenta;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingptovtaId != null ? pricingptovtaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingptovtaId != null ? pricingptovtaId.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 PricingPuntoVenta)) {
|
||||
return false;
|
||||
}
|
||||
PricingPuntoVenta other = (PricingPuntoVenta) object;
|
||||
if ((this.pricingptovtaId == null && other.pricingptovtaId != null) || (this.pricingptovtaId != null && !this.pricingptovtaId.equals(other.pricingptovtaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingPuntoVenta)) {
|
||||
return false;
|
||||
}
|
||||
PricingPuntoVenta other = (PricingPuntoVenta) object;
|
||||
if ((this.pricingptovtaId == null && other.pricingptovtaId != null) || (this.pricingptovtaId != null && !this.pricingptovtaId.equals(other.pricingptovtaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingPuntoventa[pricingptovtaId=" + pricingptovtaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingPuntoventa[pricingptovtaId=" + pricingptovtaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_RUTA")
|
||||
public class PricingRuta implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_RUTA_SEQ")
|
||||
@Column(name = "PRICINGRUTA_ID")
|
||||
private Integer pricingrutaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_RUTA_SEQ")
|
||||
@Column(name = "PRICINGRUTA_ID")
|
||||
private Integer pricingrutaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingRuta() {
|
||||
}
|
||||
public PricingRuta() {
|
||||
}
|
||||
|
||||
public PricingRuta(Integer pricingrutaId) {
|
||||
this.pricingrutaId = pricingrutaId;
|
||||
}
|
||||
public PricingRuta(Integer pricingrutaId) {
|
||||
this.pricingrutaId = pricingrutaId;
|
||||
}
|
||||
|
||||
public Integer getPricingrutaId() {
|
||||
return pricingrutaId;
|
||||
}
|
||||
public Integer getPricingrutaId() {
|
||||
return pricingrutaId;
|
||||
}
|
||||
|
||||
public void setPricingrutaId(Integer pricingrutaId) {
|
||||
this.pricingrutaId = pricingrutaId;
|
||||
}
|
||||
public void setPricingrutaId(Integer pricingrutaId) {
|
||||
this.pricingrutaId = pricingrutaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingrutaId != null ? pricingrutaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingrutaId != null ? pricingrutaId.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 PricingRuta)) {
|
||||
return false;
|
||||
}
|
||||
PricingRuta other = (PricingRuta) object;
|
||||
if ((this.pricingrutaId == null && other.pricingrutaId != null) || (this.pricingrutaId != null && !this.pricingrutaId.equals(other.pricingrutaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingRuta)) {
|
||||
return false;
|
||||
}
|
||||
PricingRuta other = (PricingRuta) object;
|
||||
if ((this.pricingrutaId == null && other.pricingrutaId != null) || (this.pricingrutaId != null && !this.pricingrutaId.equals(other.pricingrutaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingRuta[pricingrutaId=" + pricingrutaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingRuta[pricingrutaId=" + pricingrutaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,103 +28,102 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_TIPOPTOVTA")
|
||||
public class PricingTipoPtoVta implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_TIPOPTOVTA_SEQ")
|
||||
@Column(name = "PRICINGTIPOPTOVTA_ID")
|
||||
private Integer pricingtipoptovtaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "TIPOPTOVTA_ID", referencedColumnName = "TIPOPTOVTA_ID")
|
||||
@ManyToOne
|
||||
private TipoPuntoVenta tipoPtovta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_TIPOPTOVTA_SEQ")
|
||||
@Column(name = "PRICINGTIPOPTOVTA_ID")
|
||||
private Integer pricingtipoptovtaId;
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "TIPOPTOVTA_ID", referencedColumnName = "TIPOPTOVTA_ID")
|
||||
@ManyToOne
|
||||
private TipoPuntoVenta tipoPtovta;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingTipoPtoVta() {
|
||||
}
|
||||
public PricingTipoPtoVta() {
|
||||
}
|
||||
|
||||
public PricingTipoPtoVta(Integer pricingtipoptovtaId) {
|
||||
this.pricingtipoptovtaId = pricingtipoptovtaId;
|
||||
}
|
||||
public PricingTipoPtoVta(Integer pricingtipoptovtaId) {
|
||||
this.pricingtipoptovtaId = pricingtipoptovtaId;
|
||||
}
|
||||
|
||||
public Integer getPricingtipoptovtaId() {
|
||||
return pricingtipoptovtaId;
|
||||
}
|
||||
public Integer getPricingtipoptovtaId() {
|
||||
return pricingtipoptovtaId;
|
||||
}
|
||||
|
||||
public void setPricingtipoptovtaId(Integer pricingtipoptovtaId) {
|
||||
this.pricingtipoptovtaId = pricingtipoptovtaId;
|
||||
}
|
||||
public void setPricingtipoptovtaId(Integer pricingtipoptovtaId) {
|
||||
this.pricingtipoptovtaId = pricingtipoptovtaId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public TipoPuntoVenta getTipoPtovta() {
|
||||
return tipoPtovta;
|
||||
}
|
||||
public TipoPuntoVenta getTipoPtovta() {
|
||||
return tipoPtovta;
|
||||
}
|
||||
|
||||
public void setTipoPtovta(TipoPuntoVenta tipoPtovta) {
|
||||
this.tipoPtovta = tipoPtovta;
|
||||
}
|
||||
public void setTipoPtovta(TipoPuntoVenta tipoPtovta) {
|
||||
this.tipoPtovta = tipoPtovta;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingtipoptovtaId != null ? pricingtipoptovtaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingtipoptovtaId != null ? pricingtipoptovtaId.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 PricingTipoPtoVta)) {
|
||||
return false;
|
||||
}
|
||||
PricingTipoPtoVta other = (PricingTipoPtoVta) object;
|
||||
if ((this.pricingtipoptovtaId == null && other.pricingtipoptovtaId != null) || (this.pricingtipoptovtaId != null && !this.pricingtipoptovtaId.equals(other.pricingtipoptovtaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingTipoPtoVta)) {
|
||||
return false;
|
||||
}
|
||||
PricingTipoPtoVta other = (PricingTipoPtoVta) object;
|
||||
if ((this.pricingtipoptovtaId == null && other.pricingtipoptovtaId != null) || (this.pricingtipoptovtaId != null && !this.pricingtipoptovtaId.equals(other.pricingtipoptovtaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingTipoptovta[pricingtipoptovtaId=" + pricingtipoptovtaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingTipoptovta[pricingtipoptovtaId=" + pricingtipoptovtaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,106 +28,105 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_TIPOSERVICIO")
|
||||
public class PricingTipoServicio implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_TIPOSERVICIO_SEQ")
|
||||
@Column(name = "PRICINGTIPOSERVICIO_ID")
|
||||
private Integer pricingtiposervicioId;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "TIPOSERVICIO_ID", referencedColumnName = "TIPOSERVICIO_ID")
|
||||
@ManyToOne
|
||||
private TipoServicio tipoServicio;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_TIPOSERVICIO_SEQ")
|
||||
@Column(name = "PRICINGTIPOSERVICIO_ID")
|
||||
private Integer pricingtiposervicioId;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private Integer activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
@JoinColumn(name = "TIPOSERVICIO_ID", referencedColumnName = "TIPOSERVICIO_ID")
|
||||
@ManyToOne
|
||||
private TipoServicio tipoServicio;
|
||||
|
||||
public PricingTipoServicio() {
|
||||
}
|
||||
public PricingTipoServicio() {
|
||||
}
|
||||
|
||||
public PricingTipoServicio(Integer pricingtiposervicioId) {
|
||||
this.pricingtiposervicioId = pricingtiposervicioId;
|
||||
}
|
||||
public PricingTipoServicio(Integer pricingtiposervicioId) {
|
||||
this.pricingtiposervicioId = pricingtiposervicioId;
|
||||
}
|
||||
|
||||
public Integer getPricingtiposervicioId() {
|
||||
return pricingtiposervicioId;
|
||||
}
|
||||
public Integer getPricingtiposervicioId() {
|
||||
return pricingtiposervicioId;
|
||||
}
|
||||
|
||||
public void setPricingtiposervicioId(Integer pricingtiposervicioId) {
|
||||
this.pricingtiposervicioId = pricingtiposervicioId;
|
||||
}
|
||||
public void setPricingtiposervicioId(Integer pricingtiposervicioId) {
|
||||
this.pricingtiposervicioId = pricingtiposervicioId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
public TipoServicio getTipoServicio() {
|
||||
return tipoServicio;
|
||||
}
|
||||
public TipoServicio getTipoServicio() {
|
||||
return tipoServicio;
|
||||
}
|
||||
|
||||
public void setTipoServicio(TipoServicio tipoServicio) {
|
||||
this.tipoServicio = tipoServicio;
|
||||
}
|
||||
public void setTipoServicio(TipoServicio tipoServicio) {
|
||||
this.tipoServicio = tipoServicio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingtiposervicioId != null ? pricingtiposervicioId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingtiposervicioId != null ? pricingtiposervicioId.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 PricingTipoServicio)) {
|
||||
return false;
|
||||
}
|
||||
PricingTipoServicio other = (PricingTipoServicio) object;
|
||||
if ((this.pricingtiposervicioId == null && other.pricingtiposervicioId != null) || (this.pricingtiposervicioId != null && !this.pricingtiposervicioId.equals(other.pricingtiposervicioId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingTipoServicio)) {
|
||||
return false;
|
||||
}
|
||||
PricingTipoServicio other = (PricingTipoServicio) object;
|
||||
if ((this.pricingtiposervicioId == null && other.pricingtiposervicioId != null) || (this.pricingtiposervicioId != null && !this.pricingtiposervicioId.equals(other.pricingtiposervicioId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PricingTiposervicio[pricingtiposervicioId=" + pricingtiposervicioId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PricingTiposervicio[pricingtiposervicioId=" + pricingtiposervicioId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class PricingVigencia implements Serializable {
|
|||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecfinventa;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
private Integer activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
|
@ -104,11 +104,11 @@ public class PricingVigencia implements Serializable {
|
|||
this.fecfinventa = fecfinventa;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
public Integer getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
public void setActivo(Integer activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,22 +4,27 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafius
|
||||
*/
|
||||
public interface PricingService extends GenericService<Pricing, Integer> {
|
||||
|
||||
public void borrarFisico(Pricing pricing);
|
||||
public void borrarFisico(Pricing pricing);
|
||||
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa,
|
||||
Short cantboleto, Integer cantdiasanticipacion,
|
||||
BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo);
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa,
|
||||
Short cantboleto, Integer cantdiasanticipacion,
|
||||
BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo);
|
||||
|
||||
public List<Pricing> buscarPorNombre(String nombPricing);
|
||||
public List<Pricing> buscarPorNombre(String nombPricing);
|
||||
|
||||
public void inativar(Pricing entidad);
|
||||
|
||||
public void ativar(Pricing entidad);
|
||||
}
|
||||
|
|
|
@ -22,45 +22,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingAnticipacionService")
|
||||
public class PricingAnticipacionServiceImpl implements PricingAnticipacionService {
|
||||
|
||||
@Autowired
|
||||
private PricingAnticipacionDAO pricingAnticipacionDAO;
|
||||
@Autowired
|
||||
private PricingAnticipacionDAO pricingAnticipacionDAO;
|
||||
|
||||
public List<PricingAnticipacion> obtenerTodos() {
|
||||
return pricingAnticipacionDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingAnticipacion> obtenerTodos() {
|
||||
return pricingAnticipacionDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingAnticipacion obtenerID(Integer id) {
|
||||
return pricingAnticipacionDAO.obtenerID(id);
|
||||
}
|
||||
public PricingAnticipacion obtenerID(Integer id) {
|
||||
return pricingAnticipacionDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingAnticipacion suscribir(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingAnticipacion suscribir(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingAnticipacionDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingAnticipacionDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingAnticipacion actualizacion(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingAnticipacion actualizacion(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingAnticipacionDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingAnticipacionDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingAnticipacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingAnticipacionDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingAnticipacionDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public List<PricingAnticipacion> obtenerPorPricing(Pricing pricing) {
|
||||
return pricingAnticipacionDAO.obtenerPorPricing(pricing);
|
||||
}
|
||||
public List<PricingAnticipacion> obtenerPorPricing(Pricing pricing) {
|
||||
return pricingAnticipacionDAO.obtenerPorPricing(pricing);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,45 +22,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingAsientoService")
|
||||
public class PricingAsientoServiceImpl implements PricingAsientoService {
|
||||
|
||||
@Autowired
|
||||
private PricingAsientoDAO pricingAsientoDAO;
|
||||
@Autowired
|
||||
private PricingAsientoDAO pricingAsientoDAO;
|
||||
|
||||
public List<PricingAsiento> obtenerTodos() {
|
||||
return pricingAsientoDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingAsiento> obtenerTodos() {
|
||||
return pricingAsientoDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingAsiento obtenerID(Integer id) {
|
||||
return pricingAsientoDAO.obtenerID(id);
|
||||
}
|
||||
public PricingAsiento obtenerID(Integer id) {
|
||||
return pricingAsientoDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingAsiento suscribir(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingAsiento suscribir(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingAsientoDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingAsientoDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingAsiento actualizacion(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingAsiento actualizacion(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingAsientoDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingAsientoDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingAsiento entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingAsientoDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingAsientoDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public List<PricingAsiento> obtenerPricingCategoria(Pricing pricing, Integer asiento) {
|
||||
return pricingAsientoDAO.obtenerPricingCategoria(pricing, asiento);
|
||||
}
|
||||
public List<PricingAsiento> obtenerPricingCategoria(Pricing pricing, Integer asiento) {
|
||||
return pricingAsientoDAO.obtenerPricingCategoria(pricing, asiento);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PricingCategoriaServiceImpl implements PricingCategoriaService {
|
|||
public PricingCategoria suscribir(PricingCategoria entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingCategoriaDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class PricingCategoriaServiceImpl implements PricingCategoriaService {
|
|||
public PricingCategoria actualizacion(PricingCategoria entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingCategoriaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class PricingCategoriaServiceImpl implements PricingCategoriaService {
|
|||
public void borrar(PricingCategoria entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingCategoriaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PricingClaseServiceImpl implements PricingClaseService {
|
|||
public PricingClase suscribir(PricingClase entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingClaseDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class PricingClaseServiceImpl implements PricingClaseService {
|
|||
public PricingClase actualizacion(PricingClase entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingClaseDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class PricingClaseServiceImpl implements PricingClaseService {
|
|||
public void borrar(PricingClase entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingClaseDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PricingCorridaServiceImpl implements PricingCorridaService {
|
|||
public PricingCorrida suscribir(PricingCorrida entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingCorridaDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class PricingCorridaServiceImpl implements PricingCorridaService {
|
|||
public PricingCorrida actualizacion(PricingCorrida entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingCorridaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class PricingCorridaServiceImpl implements PricingCorridaService {
|
|||
public void borrar(PricingCorrida entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingCorridaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingDiaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingDia;
|
||||
import com.rjconsultores.ventaboletos.service.PricingDiaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -36,7 +37,7 @@ public class PricingDiaServiceImpl implements PricingDiaService {
|
|||
public PricingDia suscribir(PricingDia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingDiaDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -45,7 +46,7 @@ public class PricingDiaServiceImpl implements PricingDiaService {
|
|||
public PricingDia actualizacion(PricingDia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingDiaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -54,7 +55,7 @@ public class PricingDiaServiceImpl implements PricingDiaService {
|
|||
public void borrar(PricingDia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingDiaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.service.impl;
|
|||
|
||||
import com.rjconsultores.ventaboletos.dao.PricingImporteDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingImporte;
|
||||
import com.rjconsultores.ventaboletos.service.PricingImporteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -37,7 +38,7 @@ public class PricingImporteServiceImpl implements PricingImporteService {
|
|||
public PricingImporte suscribir(PricingImporte entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingImporteDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -46,7 +47,7 @@ public class PricingImporteServiceImpl implements PricingImporteService {
|
|||
public PricingImporte actualizacion(PricingImporte entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingImporteDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -55,7 +56,7 @@ public class PricingImporteServiceImpl implements PricingImporteService {
|
|||
public void borrar(PricingImporte entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingImporteDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -23,45 +23,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingMarcaService")
|
||||
public class PricingMarcaServiceImpl implements PricingMarcaService {
|
||||
|
||||
@Autowired
|
||||
private PricingMarcaDAO pricingMarcaDAO;
|
||||
@Autowired
|
||||
private PricingMarcaDAO pricingMarcaDAO;
|
||||
|
||||
public List<PricingMarca> obtenerTodos() {
|
||||
return pricingMarcaDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingMarca> obtenerTodos() {
|
||||
return pricingMarcaDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingMarca obtenerID(Integer id) {
|
||||
return pricingMarcaDAO.obtenerID(id);
|
||||
}
|
||||
public PricingMarca obtenerID(Integer id) {
|
||||
return pricingMarcaDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingMarca suscribir(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingMarca suscribir(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingMarcaDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingMarcaDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingMarca actualizacion(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingMarca actualizacion(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingMarcaDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingMarcaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingMarca entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingMarcaDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingMarcaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingMarca(Pricing pricing, Marca marca) {
|
||||
return pricingMarcaDAO.obtenerPricingMarca(pricing,marca);
|
||||
}
|
||||
public Boolean obtenerPricingMarca(Pricing pricing, Marca marca) {
|
||||
return pricingMarcaDAO.obtenerPricingMarca(pricing, marca);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PricingMercadoServiceImpl implements PricingMercadoService {
|
|||
public PricingMercado suscribir(PricingMercado entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingMercadoDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class PricingMercadoServiceImpl implements PricingMercadoService {
|
|||
public PricingMercado actualizacion(PricingMercado entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingMercadoDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class PricingMercadoServiceImpl implements PricingMercadoService {
|
|||
public void borrar(PricingMercado entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingMercadoDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -23,49 +23,49 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingOcupacionService")
|
||||
public class PricingOcupacionServiceImpl implements PricingOcupacionService {
|
||||
|
||||
@Autowired
|
||||
private PricingOcupacionDAO pricingOcupacionDAO;
|
||||
@Autowired
|
||||
private PricingOcupacionDAO pricingOcupacionDAO;
|
||||
|
||||
public List<PricingOcupacion> obtenerTodos() {
|
||||
return pricingOcupacionDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingOcupacion> obtenerTodos() {
|
||||
return pricingOcupacionDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingOcupacion obtenerID(Integer id) {
|
||||
return pricingOcupacionDAO.obtenerID(id);
|
||||
}
|
||||
public PricingOcupacion obtenerID(Integer id) {
|
||||
return pricingOcupacionDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingOcupacion suscribir(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingOcupacion suscribir(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingOcupacionDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingOcupacionDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingOcupacion actualizacion(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingOcupacion actualizacion(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingOcupacionDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingOcupacionDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingOcupacion entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingOcupacionDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingOcupacionDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public Boolean podeSalvar(Pricing pricing, BigDecimal min, BigDecimal max) {
|
||||
return pricingOcupacionDAO.podeSalvar(pricing, min, max);
|
||||
}
|
||||
public Boolean podeSalvar(Pricing pricing, BigDecimal min, BigDecimal max) {
|
||||
return pricingOcupacionDAO.podeSalvar(pricing, min, max);
|
||||
}
|
||||
|
||||
public List<PricingOcupacion> obtenerPorPricing(Pricing pricing) {
|
||||
return pricingOcupacionDAO.podeSalvar(pricing);
|
||||
}
|
||||
public List<PricingOcupacion> obtenerPorPricing(Pricing pricing) {
|
||||
return pricingOcupacionDAO.podeSalvar(pricing);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,45 +23,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingPuntoVentaService")
|
||||
public class PricingPuntoVentaServiceImpl implements PricingPuntoVentaService {
|
||||
|
||||
@Autowired
|
||||
private PricingPuntoVentaDAO pricingPuntoVentaDAO;
|
||||
@Autowired
|
||||
private PricingPuntoVentaDAO pricingPuntoVentaDAO;
|
||||
|
||||
public List<PricingPuntoVenta> obtenerTodos() {
|
||||
return pricingPuntoVentaDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingPuntoVenta> obtenerTodos() {
|
||||
return pricingPuntoVentaDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingPuntoVenta obtenerID(Integer id) {
|
||||
return pricingPuntoVentaDAO.obtenerID(id);
|
||||
}
|
||||
public PricingPuntoVenta obtenerID(Integer id) {
|
||||
return pricingPuntoVentaDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingPuntoVenta suscribir(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingPuntoVenta suscribir(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingPuntoVentaDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingPuntoVentaDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingPuntoVenta actualizacion(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingPuntoVenta actualizacion(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingPuntoVentaDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingPuntoVentaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingPuntoVenta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingPuntoVentaDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingPuntoVentaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingPuntoVenta(Pricing pricing, PuntoVenta puntoVenta) {
|
||||
return pricingPuntoVentaDAO.obtenerPricingPuntoVenta(pricing, puntoVenta);
|
||||
}
|
||||
public Boolean obtenerPricingPuntoVenta(Pricing pricing, PuntoVenta puntoVenta) {
|
||||
return pricingPuntoVentaDAO.obtenerPricingPuntoVenta(pricing, puntoVenta);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,45 +24,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingRutaService")
|
||||
public class PricingRutaServiceImpl implements PricingRutaService {
|
||||
|
||||
@Autowired
|
||||
private PricingRutaDAO pricingRutaDAO;
|
||||
@Autowired
|
||||
private PricingRutaDAO pricingRutaDAO;
|
||||
|
||||
public List<PricingRuta> obtenerTodos() {
|
||||
return pricingRutaDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingRuta> obtenerTodos() {
|
||||
return pricingRutaDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingRuta obtenerID(Integer id) {
|
||||
return pricingRutaDAO.obtenerID(id);
|
||||
}
|
||||
public PricingRuta obtenerID(Integer id) {
|
||||
return pricingRutaDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingRuta suscribir(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingRuta suscribir(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingRutaDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingRutaDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingRuta actualizacion(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingRuta actualizacion(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingRutaDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingRutaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingRuta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingRutaDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingRutaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingRuta(Pricing pricing, Ruta ruta) {
|
||||
return pricingRutaDAO.obtenerPricingRuta(pricing, ruta);
|
||||
}
|
||||
public Boolean obtenerPricingRuta(Pricing pricing, Ruta ruta) {
|
||||
return pricingRutaDAO.obtenerPricingRuta(pricing, ruta);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,9 +4,18 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Calendar;
|
||||
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.PricingDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingAnticipacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingAsiento;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingCategoria;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingClase;
|
||||
|
@ -19,15 +28,10 @@ import com.rjconsultores.ventaboletos.entidad.PricingOcupacion;
|
|||
import com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingRuta;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingTipoServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
||||
import com.rjconsultores.ventaboletos.service.PricingService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -36,138 +40,161 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingService")
|
||||
public class PricingServiceImpl implements PricingService {
|
||||
|
||||
@Autowired
|
||||
private PricingDAO pricingDAO;
|
||||
@Autowired
|
||||
private PricingDAO pricingDAO;
|
||||
|
||||
public List<Pricing> obtenerTodos() {
|
||||
return pricingDAO.obtenerTodos();
|
||||
}
|
||||
public List<Pricing> obtenerTodos() {
|
||||
return pricingDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public Pricing obtenerID(Integer id) {
|
||||
return pricingDAO.obtenerID(id);
|
||||
}
|
||||
public Pricing obtenerID(Integer id) {
|
||||
return pricingDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public Pricing suscribir(Pricing entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public Pricing suscribir(Pricing entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public Pricing actualizacion(Pricing entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public Pricing actualizacion(Pricing entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(Pricing entidad) {
|
||||
private void ativarInativarExcluirPricing(Pricing entidad, Integer statusPricing, Integer ativarInativarExcluir) {
|
||||
entidad = obtenerID(entidad.getPricingId());
|
||||
|
||||
entidad = obtenerID(entidad.getPricingId());
|
||||
for (PricingAsiento pricingAsiento : entidad.getPricingAsientoList(statusPricing)) {
|
||||
pricingAsiento.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingAsiento.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingAsiento.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingAsiento pricing : entidad.getPricingAsientoList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingCategoria pricingCategoria : entidad.getPricingCategoriaList(statusPricing)) {
|
||||
pricingCategoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingCategoria.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingCategoria.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingCategoria pricing : entidad.getPricingCategoriaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingClase pricingClase : entidad.getPricingClaseList(statusPricing)) {
|
||||
pricingClase.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingClase.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingClase.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingClase pricing : entidad.getPricingClaseList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingCorrida pricingCorrida : entidad.getPricingCorridaList(statusPricing)) {
|
||||
pricingCorrida.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingCorrida.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingCorrida.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingCorrida pricing : entidad.getPricingCorridaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingDia pricingDia : entidad.getPricingDiaList(statusPricing)) {
|
||||
pricingDia.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingDia.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingDia.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingDia pricing : entidad.getPricingDiaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingImporte pricingImporte : entidad.getPricingImporteList(statusPricing)) {
|
||||
pricingImporte.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingImporte.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingImporte.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingImporte pricing : entidad.getPricingImporteList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingMarca pricingMarca : entidad.getPricingMarcaList(statusPricing)) {
|
||||
pricingMarca.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingMarca.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingMarca.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingMarca pricing : entidad.getPricingMarcaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingMercado pricingMercado : entidad.getPricingMercadoList(statusPricing)) {
|
||||
pricingMercado.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingMercado.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingMercado.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingMercado pricing : entidad.getPricingMercadoList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingOcupacion pricingOcupacion : entidad.getPricingOcupacionList(statusPricing)) {
|
||||
pricingOcupacion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingOcupacion.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingOcupacion.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingOcupacion pricing : entidad.getPricingOcupacionList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingPuntoVenta pricingPuntoVenta : entidad.getPricingPuntoventaList(statusPricing)) {
|
||||
pricingPuntoVenta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingPuntoVenta.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingPuntoVenta.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingPuntoVenta pricing : entidad.getPricingPuntoventaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingRuta pricingRuta : entidad.getPricingRutaList(statusPricing)) {
|
||||
pricingRuta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingRuta.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingRuta.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingRuta pricing : entidad.getPricingRutaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingTipoPtoVta pricingTipoPtoVta : entidad.getPricingTipoptovtaList(statusPricing)) {
|
||||
pricingTipoPtoVta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingTipoPtoVta.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingTipoPtoVta.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingTipoPtoVta pricing : entidad.getPricingTipoptovtaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingVigencia pricingVigencia : entidad.getPricingVigenciaList(statusPricing)) {
|
||||
pricingVigencia.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingVigencia.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingVigencia.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
for (PricingVigencia pricing : entidad.getPricingVigenciaList()) {
|
||||
pricing.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricing.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricing.setActivo(Boolean.FALSE);
|
||||
}
|
||||
for (PricingAnticipacion pricingAnticipacion : entidad.getPricingAnticipacionList(statusPricing)) {
|
||||
pricingAnticipacion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingAnticipacion.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingAnticipacion.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
for (PricingTipoServicio pricingTipoServicio : entidad.getPricingTipoServicioList(statusPricing)) {
|
||||
pricingTipoServicio.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingTipoServicio.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingTipoServicio.setActivo(ativarInativarExcluir);
|
||||
}
|
||||
|
||||
pricingDAO.actualizacion(entidad);
|
||||
}
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(ativarInativarExcluir);
|
||||
|
||||
@Transactional
|
||||
public void borrarFisico(Pricing entidad) {
|
||||
borrar(entidad);
|
||||
}
|
||||
pricingDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa,
|
||||
Short cantboleto, Integer cantdiasanticipacion,
|
||||
BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo) {
|
||||
return pricingDAO.buscar(nombPricing, empresa, cantboleto, cantdiasanticipacion,
|
||||
descuentoporcentaje, descuentoporcredondo);
|
||||
}
|
||||
@Transactional
|
||||
public void borrar(Pricing entidad) {
|
||||
ativarInativarExcluirPricing(entidad, Pricing.ATIVO, Pricing.EXCLUIDO);
|
||||
}
|
||||
|
||||
public List<Pricing> buscarPorNombre(String nombPricing) {
|
||||
return pricingDAO.buscarPorNombre(nombPricing);
|
||||
}
|
||||
@Transactional
|
||||
public void inativar(Pricing entidad) {
|
||||
ativarInativarExcluirPricing(entidad, Pricing.ATIVO, Pricing.INATIVO);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void ativar(Pricing entidad) {
|
||||
ativarInativarExcluirPricing(entidad, Pricing.INATIVO, Pricing.ATIVO);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrarFisico(Pricing entidad) {
|
||||
borrar(entidad);
|
||||
}
|
||||
|
||||
public List<Pricing> buscar(String nombPricing, Empresa empresa, Short cantboleto,
|
||||
Integer cantdiasanticipacion, BigDecimal descuentoporcentaje, BigDecimal descuentoporcredondo) {
|
||||
return pricingDAO.buscar(nombPricing, empresa, cantboleto, cantdiasanticipacion, descuentoporcentaje, descuentoporcredondo);
|
||||
}
|
||||
|
||||
public List<Pricing> buscarPorNombre(String nombPricing) {
|
||||
return pricingDAO.buscarPorNombre(nombPricing);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PricingTipoPtoVtaServiceImpl implements PricingTipoPtoVtaService {
|
|||
public PricingTipoPtoVta suscribir(PricingTipoPtoVta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingTipoPtoVtaDAO.suscribir(entidad);
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class PricingTipoPtoVtaServiceImpl implements PricingTipoPtoVtaService {
|
|||
public PricingTipoPtoVta actualizacion(PricingTipoPtoVta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingTipoPtoVtaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class PricingTipoPtoVtaServiceImpl implements PricingTipoPtoVtaService {
|
|||
public void borrar(PricingTipoPtoVta entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingTipoPtoVtaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
|
|
@ -24,45 +24,45 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingTipoServicioService")
|
||||
public class PricingTipoServicioServiceImpl implements PricingTipoServicioService {
|
||||
|
||||
@Autowired
|
||||
private PricingTipoServicioDAO pricingTipoServicioDAO;
|
||||
@Autowired
|
||||
private PricingTipoServicioDAO pricingTipoServicioDAO;
|
||||
|
||||
public List<PricingTipoServicio> obtenerTodos() {
|
||||
return pricingTipoServicioDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingTipoServicio> obtenerTodos() {
|
||||
return pricingTipoServicioDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingTipoServicio obtenerID(Integer id) {
|
||||
return pricingTipoServicioDAO.obtenerID(id);
|
||||
}
|
||||
public PricingTipoServicio obtenerID(Integer id) {
|
||||
return pricingTipoServicioDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingTipoServicio suscribir(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingTipoServicio suscribir(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingTipoServicioDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingTipoServicioDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingTipoServicio actualizacion(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingTipoServicio actualizacion(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingTipoServicioDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingTipoServicioDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingTipoServicio entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingTipoServicioDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingTipoServicioDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public Boolean obtenerPricingTipoServicio(Pricing pricing, TipoServicio tipoServicio) {
|
||||
return pricingTipoServicioDAO.obtenerPricingTipoServicio(pricing,tipoServicio);
|
||||
}
|
||||
public Boolean obtenerPricingTipoServicio(Pricing pricing, TipoServicio tipoServicio) {
|
||||
return pricingTipoServicioDAO.obtenerPricingTipoServicio(pricing, tipoServicio);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,51 +23,49 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service("pricingVigenciaService")
|
||||
public class PricingVigenciaServiceImpl implements PricingVigenciaService {
|
||||
|
||||
@Autowired
|
||||
private PricingVigenciaDAO pricingVigenciaDAO;
|
||||
@Autowired
|
||||
private PricingVigenciaDAO pricingVigenciaDAO;
|
||||
|
||||
public List<PricingVigencia> obtenerTodos() {
|
||||
return pricingVigenciaDAO.obtenerTodos();
|
||||
}
|
||||
public List<PricingVigencia> obtenerTodos() {
|
||||
return pricingVigenciaDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public PricingVigencia obtenerID(Integer id) {
|
||||
return pricingVigenciaDAO.obtenerID(id);
|
||||
}
|
||||
public PricingVigencia obtenerID(Integer id) {
|
||||
return pricingVigenciaDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingVigencia suscribir(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingVigencia suscribir(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingVigenciaDAO.suscribir(entidad);
|
||||
}
|
||||
return pricingVigenciaDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public PricingVigencia actualizacion(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
@Transactional
|
||||
public PricingVigencia actualizacion(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.ATIVO);
|
||||
|
||||
return pricingVigenciaDAO.actualizacion(entidad);
|
||||
}
|
||||
return pricingVigenciaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
@Transactional
|
||||
public void borrar(PricingVigencia entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Pricing.EXCLUIDO);
|
||||
|
||||
pricingVigenciaDAO.actualizacion(entidad);
|
||||
}
|
||||
pricingVigenciaDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public List<PricingVigencia> buscarPorVigencias(PricingVigencia pv) {
|
||||
return pricingVigenciaDAO.buscarPorVigencias(pv);
|
||||
}
|
||||
public List<PricingVigencia> buscarPorVigencias(PricingVigencia pv) {
|
||||
return pricingVigenciaDAO.buscarPorVigencias(pv);
|
||||
}
|
||||
|
||||
public Boolean podeSalvar(Pricing pricing, PricingVigencia pricingVigencia,
|
||||
Date inicio, Date fim) {
|
||||
return pricingVigenciaDAO.podeSalvar(pricing, pricingVigencia,
|
||||
inicio, fim);
|
||||
}
|
||||
public Boolean podeSalvar(Pricing pricing, PricingVigencia pricingVigencia, Date inicio, Date fim) {
|
||||
return pricingVigenciaDAO.podeSalvar(pricing, pricingVigencia, inicio, fim);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue