7 Replies Latest reply on Sep 29, 2009 1:37 AM by Ingo Jobling

    Are criteria queries discouraged at Seam?

    Juan Ignacio Sánchez Lara Apprentice

      I've been using Hibernate criteria queries for some years now and I like its OO style. Now I'm switching to Seam and I see every example done with HQL (well, its EJB 3.0 brother). Nevertheless, in every Seam reference manual page it says you can use both EntityManager or Hibernate session.


      Are Hibernate criteria queries discouraged in favour of HQL? Maybe I can use them, but I'd like to know whether I should or not.