public class HibernateUtil
extends java.lang.Object
| Constructor and Description |
|---|
HibernateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCurrentSession()
Cierre de la sessión actual
|
static org.hibernate.Session |
getCurrentSession()
Abre la sesión y la devuelve para realizar transacción
|
static org.hibernate.SessionFactory |
getSessionFactory()
En caso de que el Factory no exite se crea y se devuelve
|
public static org.hibernate.SessionFactory getSessionFactory()
public static org.hibernate.Session getCurrentSession()
public static void closeCurrentSession()