org.jeinnov.jeitime.utils
Class HibernateUtil

java.lang.Object
  extended by org.jeinnov.jeitime.utils.HibernateUtil

public class HibernateUtil
extends java.lang.Object


Field Summary
static org.hibernate.cfg.AnnotationConfiguration configuration
           
static java.lang.ThreadLocal session
           
static org.hibernate.SessionFactory sessionFactory
           
 
Constructor Summary
HibernateUtil()
           
 
Method Summary
static org.hibernate.cfg.AnnotationConfiguration getConfiguration()
           
static java.util.Properties getProperties()
           
static org.hibernate.SessionFactory getSessionFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionFactory

public static org.hibernate.SessionFactory sessionFactory

configuration

public static org.hibernate.cfg.AnnotationConfiguration configuration

session

public static final java.lang.ThreadLocal session
Constructor Detail

HibernateUtil

public HibernateUtil()
Method Detail

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()
                                                      throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getConfiguration

public static org.hibernate.cfg.AnnotationConfiguration getConfiguration()

getProperties

public static java.util.Properties getProperties()


Copyright © 2011. All Rights Reserved.