0 Replies Latest reply on Sep 12, 2005 9:17 PM by doofus

    Returning Generified Lists

    doofus Newbie

      Is the best approach to returning "generified" lists the following?

      List<Entity> getEntityList()
       return em.createQuery("FROM Entity e").getResultList();

      This works but gives an "unchecked" warning. I can supress the warning but it still exists.

      Casting the list brings up a different warning.