String passed to `newEmbeddedDatabase` in example and JavaDoc
eenblam opened this issue · 0 comments
eenblam commented
The embedded tutorial and the GraphDatabaseService
JavaDoc both claim that GraphDatabaseFactory.newEmbeddedDatabase()
accepts a path, but it seems to expect a File
.
graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );
registerShutdownHook( graphDb );
DB_PATH
is indeed updated to File
in the source, but the JavaDoc linked above actually uses a string literal:
GraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "var/graphDb" );
/ ... use Neo4j
raphDb.shutdown();