fixes bug #7663
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@57823 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
64c0c7ed63
commit
294349534b
|
@ -37,7 +37,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
@Autowired
|
||||
private PtovtaTipoEstoqueDAO ptovtaTipoEstoqueDAO;
|
||||
|
||||
|
||||
@Autowired
|
||||
public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
|
@ -80,7 +79,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
return c.list();
|
||||
}
|
||||
|
||||
|
||||
public List<PuntoVenta> busca(String nomPuntoVenta, String numPuntoVenta) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
@ -102,9 +100,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
public List<PuntoVenta> buscaPuntoVentaParada(Parada parada) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("parada", parada));
|
||||
|
||||
c.addOrder(Order.asc("nombpuntoventa"));
|
||||
|
||||
return c.list();
|
||||
|
@ -124,8 +119,7 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
|
||||
Criterion crtPtovta =
|
||||
Restrictions.and(Restrictions.eq("activo", Boolean.TRUE), Restrictions.in("empresa", empresas));
|
||||
Criterion crtPtovta = Restrictions.and(Restrictions.eq("activo", Boolean.TRUE), Restrictions.in("empresa", empresas));
|
||||
|
||||
PtovtaTipoEstoque supr = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
||||
PtovtaTipoEstoque cont = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
||||
|
|
Loading…
Reference in New Issue