2 Replies Latest reply on May 14, 2009 4:08 PM by Tathagat Tathagat

    EntityManager OR Hibernate Session

    Tathagat Tathagat Newbie

      Hi all.
      When using Seam and JPA with tomcat without Jboss embedded, I got 2 options.


      1) Use EntityManager


      @In javax.persistence.EntityManager em;



      2) Use Hibernate Session


      @In private org.hibernate.Session session



      My question is, is there any advantage of using one over the other? If yes, what?


      Thanks in advance!