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?