List of usage examples for org.hibernate Session getSessionFactory
SessionFactory getSessionFactory();
From source file:storybook.model.dao.SbGenericDAOImpl.java
License:Open Source License
public void setSession(Session session) { this.session = session; setSessionFactory(session.getSessionFactory()); }
From source file:uk.ac.ebi.ep.data.dataconfig.DataConfig.java
private SessionFactory sessionFactory() { EntityManager em = entityManagerFactory().getObject().createEntityManager(); Session session = em.unwrap(Session.class); return session.getSessionFactory(); }