spring-projects / spring-data-neo4j

Provide support to increase developer productivity in Java when using Neo4j. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
http://spring.io/projects/spring-data-neo4j
Apache License 2.0
825 stars 619 forks source link

Add support for the Neo4j Graph Query Language "Cypher" [DATAGRAPH-91] #654

Closed spring-projects-issues closed 13 years ago

spring-projects-issues commented 13 years ago

Michael Hunger opened DATAGRAPH-91 and commented

Neo4j 1.4.M04 released the first version of a Graph Query Language.

Support for this Query Language has been added at the following places:

Example, NodeEntity-field:

@GraphQuery("start me=(%d) match (me)-[:works_at]->(company)<-[:works_at]-(colleague) return colleague")
Iterable<Person> colleagues;

Example, Repository:

interface PersonRepository extends GraphRepository<Person> {
   @GraphQuery("start person=(%d) match (person)-[:boss]->(boss) return boss")
   Person findBoss(Person developer);
}

Affects: 1.1 M1

spring-projects-issues commented 13 years ago

Michael Hunger commented

Added and tested