From 1e01dc2ed83e8742ced50f2319f079561c98b01d Mon Sep 17 00:00:00 2001 From: Fabio Date: Tue, 8 Oct 2024 10:58:38 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20do=20grid=20de=20legalizac?= =?UTF-8?q?ao=20fixes=20bug#AL-4710?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../ventaboletos/dao/hibernate/VoucherHibernateDAO.java | 3 ++- .../ventaboletos/entidad/ContratoCorporativo.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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