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;
import java.util.List;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Usuario;
import java.util.List;
import org.hibernate.Session;
/**
*
@ -20,7 +17,6 @@ import org.hibernate.Session;
*/
public interface PuntoVentaDAO extends GenericDAO<PuntoVenta, Integer> {
public Session getDBSession();
public List<PuntoVenta> buscaLike(String strEstacion);

View File

@ -43,10 +43,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
setSessionFactory(factory);
}
public Session getDBSession(){
return getSession();
}
@Override
public List<PuntoVenta> obtenerTodos() {
Criteria c = getSession().createCriteria(getPersistentClass());

View File

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

View File

@ -74,10 +74,6 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
return puntoVentaDAO.obtenerID(id);
}
public Session getDBSession(){
return puntoVentaDAO.getDBSession();
}
@Transactional(noRollbackFor = { IntegracionException.class })
public PuntoVenta suscribir(PuntoVenta entidad) throws IntegracionException, ValidacionCampoException {
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());