public class HibernateSessionFactory extends Object
http://hibernate.org/42.html.| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession()
Close the single hibernate session instance.
|
static org.hibernate.Session |
currentSession()
Returns the ThreadLocal Session instance.
|
public static org.hibernate.Session currentSession()
throws org.hibernate.HibernateException
SessionFactory if needed.org.hibernate.HibernateExceptionpublic static void closeSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionCopyright © 2016. All rights reserved.