diff --git a/pom.xml b/pom.xml index cee33759d..5bf9c6c04 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ModelWeb - 1.114.0 + 1.114.1 diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/VoucherHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/VoucherHibernateDAO.java index 1519f6d01..ee17d4326 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/VoucherHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/VoucherHibernateDAO.java @@ -99,7 +99,8 @@ public class VoucherHibernateDAO extends GenericHibernateDAO impl StringBuilder hql = new StringBuilder(); hql.append(" SELECT v "); - hql.append(" FROM Voucher v "); + hql.append(" FROM Voucher v "); + hql.append(" JOIN v.contrato c "); hql.append(" WHERE v.activo = 1 "); diff --git a/src/com/rjconsultores/ventaboletos/entidad/ContratoCorporativo.java b/src/com/rjconsultores/ventaboletos/entidad/ContratoCorporativo.java index d36ba2409..e0ad74489 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/ContratoCorporativo.java +++ b/src/com/rjconsultores/ventaboletos/entidad/ContratoCorporativo.java @@ -180,7 +180,7 @@ public class ContratoCorporativo implements Serializable { @Override public String toString() { - return this.getContratoId().toString(); + return this.getNumContrato(); } } \ No newline at end of file