SHOW:
|
|
- or go back to the newest paste.
1 | public Estabelecimento ordenarPontos(String pontos) { | |
2 | String jpql = "FROM Estabelecimento estabelecimento ORDER BY estabelecimento.pontos DESC"; | |
3 | return this.sessao | |
4 | .createQuery(jpql, Estabelecimento.class) | |
5 | - | .setParameter("pontos", pontos) |
5 | + | .getResultList(); |
6 | - | .getSingleResult(); |
6 | + |