0 Replies Latest reply on Nov 26, 2008 8:07 PM by I need a real name

    problem with query

    I need a  real name Newbie
      hello, i'm need execute a simple query, but the same ever return empty list.

      i have:

      table usuarios

      query: List<Usuarios> uss = entityManager.createQuery("from Usuarios").getResultList();

      size o uss (uss.size()) ever is empty.

      and, i have too

      table instituicao

      query: List<Instituicao> a = entityManager.createQuery("from Instituicao ").getResultList();

      return correctly, and is the same idea.

      i'm using oracle 10g

      somebody know what is it?