Code example for SessionFactory

Methods: getCurrentSession

0
	 
    /** 
     * Totally clean Hibernate session. 
     */ 
	public void clearSession(){ 
		sessionFactory.getCurrentSession().clear();
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java