Make sure you understand the Java concept of a thread-local variable before you try to use this helper.
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(HibernateUtil.class) |
| the logger | |
| static final SessionFactory | sessionFactory |
| the session factory | |
| static final ThreadLocal | threadSession = new ThreadLocal() |
| thread local variable | |
| static final ThreadLocal | threadTransaction = new ThreadLocal() |
final Logger de.fhg.fokus.hss.db.hibernate.HibernateUtil.LOGGER = Logger.getLogger(HibernateUtil.class) [static, private] |
the logger
final SessionFactory de.fhg.fokus.hss.db.hibernate.HibernateUtil.sessionFactory [static, private] |
the session factory
final ThreadLocal de.fhg.fokus.hss.db.hibernate.HibernateUtil.threadSession = new ThreadLocal() [static, private] |
thread local variable
final ThreadLocal de.fhg.fokus.hss.db.hibernate.HibernateUtil.threadTransaction = new ThreadLocal() [static, private] |
1.5.2