fixes bug#13611

dev:lucas

qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@90368 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2019-02-28 00:40:35 +00:00
parent c825f447a8
commit a28637110f
1 changed files with 1 additions and 1 deletions

View File

@ -39,6 +39,6 @@ public class CustomHibernateDAO extends GenericHibernateDAO<Custom, Integer>
c.add(Restrictions.ilike("chave", chave));
return (Custom) c.uniqueResult();
return c.list().isEmpty() ? null : (Custom) c.list().get(0);
}
}