bug#6130
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@42915 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e57d519737
commit
0d92775689
|
@ -4,15 +4,12 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.dao;
|
package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.hibernate.Session;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -20,7 +17,6 @@ import org.hibernate.Session;
|
||||||
*/
|
*/
|
||||||
public interface PuntoVentaDAO extends GenericDAO<PuntoVenta, Integer> {
|
public interface PuntoVentaDAO extends GenericDAO<PuntoVenta, Integer> {
|
||||||
|
|
||||||
public Session getDBSession();
|
|
||||||
|
|
||||||
public List<PuntoVenta> buscaLike(String strEstacion);
|
public List<PuntoVenta> buscaLike(String strEstacion);
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
||||||
setSessionFactory(factory);
|
setSessionFactory(factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Session getDBSession(){
|
|
||||||
return getSession();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PuntoVenta> obtenerTodos() {
|
public List<PuntoVenta> obtenerTodos() {
|
||||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
|
|
@ -21,8 +21,6 @@ import com.rjconsultores.ventaboletos.exception.ValidacionCampoException;
|
||||||
*/
|
*/
|
||||||
public interface PuntoVentaService {
|
public interface PuntoVentaService {
|
||||||
|
|
||||||
public Session getDBSession();
|
|
||||||
|
|
||||||
public List<PuntoVenta> obtenerTodos();
|
public List<PuntoVenta> obtenerTodos();
|
||||||
|
|
||||||
public PuntoVenta obtenerID(Integer id);
|
public PuntoVenta obtenerID(Integer id);
|
||||||
|
|
|
@ -74,10 +74,6 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
return puntoVentaDAO.obtenerID(id);
|
return puntoVentaDAO.obtenerID(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Session getDBSession(){
|
|
||||||
return puntoVentaDAO.getDBSession();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional(noRollbackFor = { IntegracionException.class })
|
@Transactional(noRollbackFor = { IntegracionException.class })
|
||||||
public PuntoVenta suscribir(PuntoVenta entidad) throws IntegracionException, ValidacionCampoException {
|
public PuntoVenta suscribir(PuntoVenta entidad) throws IntegracionException, ValidacionCampoException {
|
||||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
Loading…
Reference in New Issue