Example usage for org.springframework.data.neo4j.web.support OpenSessionInViewInterceptor setSessionFactory

List of usage examples for org.springframework.data.neo4j.web.support OpenSessionInViewInterceptor setSessionFactory

Introduction

In this page you can find the example usage for org.springframework.data.neo4j.web.support OpenSessionInViewInterceptor setSessionFactory.

Prototype

public void setSessionFactory(SessionFactory sessionFactory) 

Source Link

Document

Set the Neo4j OGM SessionFactory that should be used to create Sessions.

Usage

From source file:org.neo4j.cineasts.Application.java

@Bean
public OpenSessionInViewInterceptor openSessionInViewInterceptor() {
    OpenSessionInViewInterceptor openSessionInViewInterceptor = new OpenSessionInViewInterceptor();
    openSessionInViewInterceptor.setSessionFactory(sessionFactory());
    return openSessionInViewInterceptor;
}