This is how we instantiate a new instance of an embedded graphdb.
final GraphDatabaseService graphDB = new
GraphDatabaseFactory().newEmbeddedDatabaseBuilder("/your/path/to/database/files")
.loadPropertiesFromFile("/your/path/to/database/files/neo4j.properties" )
.newGraphDatabase();
On Wednesday, June 3, 2015 at 4:26:44 PM UTC-7, Josef Karthauser wrote:
>
> Hi folks,
>
> Can someone familiar with Spring-Data-Neo4j please tell me how to
> instantiate a GraphRepository instance without using Spring?
>
> I know I can *neo4jTemplate.repositoryFor(DomainClass)* to get one, but
> how do I instantiate an instance of an interface?
>
> i.e.:
>
> * interface MyFooGraph implements GraphRepository(Foo) {*
> * @Query("SOME CYPHER QUERY WHERE a.property={0} RETURN count(a)
> <> 0")*
> * boolean exists(Long id)*
>
> * }*
>
> How do I, in code, get an instance of a *MyFooGraph*?
>
> I don't have the luxury of Spring in the current project, but I do want
> SDN magic.
>
> Many thanks,
> Joe
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.