Merge pull request 'fixes bug#AL-3308' (!123) from AL-3308 into master
Reviewed-on: adm/ModelWeb#123 Reviewed-by: wallace <wallace@rjconsultores.com.br>master
commit
5efe30a379
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.26.2</version>
|
<version>1.26.3</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
package com.rjconsultores.ventaboletos.dao;
|
package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
||||||
|
|
||||||
public interface TipoEventoExtraFormaPagoDAO extends GenericDAO<TipoEventoExtraFormaPago, Integer> {
|
public interface TipoEventoExtraFormaPagoDAO extends GenericDAO<TipoEventoExtraFormaPago, Integer> {
|
||||||
|
public List<TipoEventoExtraFormaPago> buscarPorTipoEventoExtra(TipoEventoExtra tipoeventoextra);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,11 +4,14 @@ import java.util.List;
|
||||||
|
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
import org.hibernate.criterion.Restrictions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.TipoEventoExtraFormaPagoDAO;
|
import com.rjconsultores.ventaboletos.dao.TipoEventoExtraFormaPagoDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraEmpresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
||||||
|
|
||||||
@Repository("tipoEventoExtraFormaPagoDAO")
|
@Repository("tipoEventoExtraFormaPagoDAO")
|
||||||
|
@ -27,4 +30,12 @@ public class TipoEventoExtraFormaPagoHibernateDAO extends GenericHibernateDAO<Ti
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TipoEventoExtraFormaPago> buscarPorTipoEventoExtra(TipoEventoExtra tipoeventoextra) {
|
||||||
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("tipoeventoextra", tipoeventoextra));
|
||||||
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
return c.list();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
package com.rjconsultores.ventaboletos.service;
|
package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
||||||
|
|
||||||
public interface TipoEventoExtraFormaPagoService extends GenericService<TipoEventoExtraFormaPago, Integer> {
|
public interface TipoEventoExtraFormaPagoService extends GenericService<TipoEventoExtraFormaPago, Integer> {
|
||||||
|
public List<TipoEventoExtraFormaPago> buscarPorTipoEventoExtra(TipoEventoExtra tipoeventoextra);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.TipoEventoExtraFormaPagoDAO;
|
import com.rjconsultores.ventaboletos.dao.TipoEventoExtraFormaPagoDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraFormaPago;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoEventoExtraFormaPagoService;
|
import com.rjconsultores.ventaboletos.service.TipoEventoExtraFormaPagoService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
@ -50,4 +51,9 @@ public class TipoEventoExtraFormaPagoServiceImpl implements TipoEventoExtraForm
|
||||||
public void borrar(TipoEventoExtraFormaPago entidad) {
|
public void borrar(TipoEventoExtraFormaPago entidad) {
|
||||||
TipoEventoExtraFormaPagoDAO.borrar(entidad);
|
TipoEventoExtraFormaPagoDAO.borrar(entidad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TipoEventoExtraFormaPago> buscarPorTipoEventoExtra(TipoEventoExtra tipoeventoextra) {
|
||||||
|
return TipoEventoExtraFormaPagoDAO.buscarPorTipoEventoExtra(tipoeventoextra);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue