Code example for SessionFactory

Methods: openSession

0
		this.applicationContext = applicationContext;
	} 
 
	@Override 
	public Session openSession() throws HibernateException {
		return original.openSession(new SpringInterceptor(this.applicationContext, original));
	} 
 
	@Override 
	public Session openSession(Connection connection) {
		return original.openSession(connection, new SpringInterceptor(this.applicationContext, original));
	} 
 
	@Override 
	public Session openSession(Interceptor interceptor) throws HibernateException {
        return original.openSession(interceptor);
    } 
 
    @Override 
	public Session openSession(Connection connection, Interceptor interceptor) {