You can't without spring except if you are using our upcoming Java-OGM which is used to build SDN4 (but not tied to it).
With spring you just let spring inject you an instance of the repository Michael > Am 03.06.2015 um 16:26 schrieb Josef Karthauser <[email protected]>: > > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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.
