I have successfully incorporated a Play! Framework 2.2.2 application with spring-data-neo4j 3.
I now have to incorporate a simple Java component with neo4j. I'm using neo4j-rest-graphdb-2.0.1 in my new project. Question as follows:
With spring-data-neo4j I had a User model class with @NodeEntity and @TypeAlias("_User") annotations. So I could execute a Cypher query like this:
@Query("MATCH (User:_User) WHERE User.network = {0} RETURN User")
Iterable<User> executeFilterTest(String filterValue);
And that would return a list of my User model class objects that I can iterate through.
But now in my Java project I am doing this:
RestAPI restAPI = new RestAPIFacade("http://localhost:7474/db/data","","");
CypherResult theResult = restAPI.query("MATCH (User:User) WHERE User.userid = '" + id + "' RETURN User", new HashMap<String, Object>());
I have no idea how to use the CypherResult? Is there a way I can return the same User model objects as a list like I did in my spring-data-neo4j instance?