Code example for SessionFactory

Methods: openSession

0
	protected Configuration getCommonConfiguration() {
		return commonCfg;
	} 
 
	protected Session getSlaveSession() {
		return slaveSessionFactory.openSession();
	} 
 
	protected static SessionFactory getSlaveSessionFactory() {
		return slaveSessionFactory;
	} 
 
	@Override 
	protected abstract Class<?>[] getAnnotatedClasses();
 
	protected abstract Class<?>[] getCommonAnnotatedClasses();
}