Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A new dynamic method named withOdb withNeo4j will be injected into all controllers, giving you access to a org.neo4j.graphdb.GraphDatabaseService object, with which you'll be able to make calls to the database. Remember to make all calls to the database off the EDT otherwise your application may appear unresponsive when doing long computations inside the EDT.
This method is aware of multiple datasources. If no datasourceName is specified when calling it then the default dataSource will be selected. Here are two example usages, the first queries against the default datasource while the second queries a datasource whose name has been configured as 'internal'

...