org.sqlproc.engine.hibernate
Class HibernateSessionFactory

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

public class HibernateSessionFactory
extends Object
implements SqlSessionFactory

The simple implementation of the factory SqlSessionFactory for the Hibernate stack.

For more info please see the Tutorials.

Author:
Vladimir Hudec

Field Summary
private  org.hibernate.SessionFactory sessionFactory
          The Hibernate session factory.
 
Constructor Summary
HibernateSessionFactory(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

HibernateSessionFactory

public HibernateSessionFactory(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.