public class CUFHibernateUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession()
Zamykanie sesji
|
static org.hibernate.Session |
getSession() |
static org.hibernate.SessionFactory |
getSessionFactory()
Zwraca SessionFactory (buduje, jesli nie istnieje)
|
static void |
initSessionFactory()
Inicjuje sessionFactory za pomoca null
|
public static void initSessionFactory()
public static org.hibernate.SessionFactory getSessionFactory()
public static org.hibernate.Session getSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionpublic static void closeSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionCopyright © 2021 Suncode. All rights reserved.