public class HibernateSessionFactory extends Object implements SqlSessionFactory
SqlSessionFactory for the Hibernate stack.
For more info please see the Tutorials.
| Modifier and Type | Field and Description |
|---|---|
private String |
name
The name of the database related to this session.
|
private org.hibernate.SessionFactory |
sessionFactory
The Hibernate session factory.
|
| Constructor and Description |
|---|
HibernateSessionFactory(org.hibernate.SessionFactory sessionFactory)
Creates a new instance.
|
HibernateSessionFactory(org.hibernate.SessionFactory sessionFactory,
String name)
Creates a new instance.
|
private org.hibernate.SessionFactory sessionFactory
private String name
public HibernateSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - the Hibernate session factorypublic HibernateSessionFactory(org.hibernate.SessionFactory sessionFactory,
String name)
sessionFactory - the Hibernate session factoryname - the name of the database related to this sessionpublic SqlSession getSqlSession()
getSqlSession in interface SqlSessionFactoryCopyright © 2016. All rights reserved.