public class HibernateSessionFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession()
Close the single hibernate session instance.
|
static org.hibernate.Session |
getSession()
Returns the ThreadLocal Session instance.
|
static org.hibernate.SessionFactory |
getSessionFactory() |
static void |
rebuildSessionFactory()
Rebuild hibernate session factory
|
public static org.hibernate.Session getSession()
throws org.hibernate.HibernateException
SessionFactory if needed.org.hibernate.HibernateExceptionpublic static void rebuildSessionFactory()
public static void closeSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionpublic static org.hibernate.SessionFactory getSessionFactory()
Copyright © 2017. All rights reserved.