public class HibernateSessionFactory extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
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.HibernateException - HibernateExceptionpublic static void rebuildSessionFactory()
public static void closeSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateException - HibernateExceptionpublic static org.hibernate.SessionFactory getSessionFactory()
Copyright © 2016. All rights reserved.