I have a namedQuery:
* Query qryUsuario = em.createNamedQuery("Usuarios.buscarPorUserPassword");
qryUsuario.setParameter("user", username); qryUsuario.setParameter("password", password); return (Usuarios )qryUsuario.getSingleResult();*
but I try with a user that no exists, and the qryUsuario.getSingleResult no throw NoResultException |
|