org.sqlproc.engine.hibernate
Class HibernateWebSessionFactory

java.lang.Object
  extended by org.sqlproc.engine.hibernate.HibernateWebSessionFactory
All Implemented Interfaces:
SqlSessionFactory

public class HibernateWebSessionFactory
extends Object
implements SqlSessionFactory

The simple implementation of the factory SqlSessionFactory for the Hibernate stack. This implementation is sutable mainly for Web applications.

For more info please see the Tutorials.

Author:
Vladimir Hudec

Field Summary
private  org.hibernate.SessionFactory sessionFactory
          The Hibernate session factory.
 
Constructor Summary
HibernateWebSessionFactory(org.hibernate.SessionFactory sessionFactory)
          Creates a new instance.
 
Method Summary
 SqlSession getSqlSession()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionFactory

private org.hibernate.SessionFactory sessionFactory
The Hibernate session factory.

Constructor Detail

HibernateWebSessionFactory

public HibernateWebSessionFactory(org.hibernate.SessionFactory sessionFactory)
Creates a new instance.

Parameters:
sessionFactory - the Hibernate session factory
Method Detail

getSqlSession

public SqlSession getSqlSession()

Specified by:
getSqlSession in interface SqlSessionFactory


Copyright © 2013. All Rights Reserved.