gleimar 2015-04-08 23:12:13 +00:00
parent e57d519737
commit 0d92775689
4 changed files with 2 additions and 16 deletions

View File

@ -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);

View File

@ -42,10 +42,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) { public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
setSessionFactory(factory); setSessionFactory(factory);
} }
public Session getDBSession(){
return getSession();
}
@Override @Override
public List<PuntoVenta> obtenerTodos() { public List<PuntoVenta> obtenerTodos() {

View File

@ -20,8 +20,6 @@ import com.rjconsultores.ventaboletos.exception.ValidacionCampoException;
* @author Administrador * @author Administrador
*/ */
public interface PuntoVentaService { public interface PuntoVentaService {
public Session getDBSession();
public List<PuntoVenta> obtenerTodos(); public List<PuntoVenta> obtenerTodos();

View File

@ -73,10 +73,6 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
public PuntoVenta obtenerID(Integer id) { public PuntoVenta obtenerID(Integer id) {
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 {