0 Replies Latest reply on May 24, 2011 2:51 PM by null null

    How to get SessionFactory from EntityManagerFactory

    null null Novice

      I need to create a StatelessSession(ie. no first level cache) from the SessionFactory.  how do I get this from the EntityManagerFactory in hibernate.  Is there a hibernate calll I can make and pass in the EntityManagerFactory and hibernate would return the SessionFactory?


      OR could I just relfect and cheat and setAccessible(true) on some fields and traverse down from EntityManagerFactory to get the SessionFactory? or would that really screw things up?