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-87c2c4800839master
parent
c825f447a8
commit
a28637110f
|
@ -39,6 +39,6 @@ public class CustomHibernateDAO extends GenericHibernateDAO<Custom, Integer>
|
||||||
|
|
||||||
c.add(Restrictions.ilike("chave", chave));
|
c.add(Restrictions.ilike("chave", chave));
|
||||||
|
|
||||||
return (Custom) c.uniqueResult();
|
return c.list().isEmpty() ? null : (Custom) c.list().get(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue