Hi!

After running the neo4j Hello World app some newcomers might be confused regarding how to get the data back from neo4j. The basic answer to this is to add a relationship to the reference node, which then can be used to retrieve the data.

So I came up with this example code:

https://svn.neo4j.org/laboratory/users/andersn/neo4j-archetype-quickstart/src/main/resources/archetype-resources/src/main/java/NeoApp.java

It's part of a maven Archetype, so the directory layout may be a bit strange!

Pros and cons:
+ shows real persistence of data
+ shows a simple way to traverse
- much code to do little
- running the main method twice will fail if the db files are not removed (and removing a directory is a pain in Java AFAIK)

Any suggestions on how to improve it?

The node space is attached as an image as well.

/anders

<<inline: archetype.quickstart.png>>

_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to