This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

I think the best way of doing that, would be to use the Neo4j GraphAlgoFactory and PathFinders and then convert the resulting Paths (or its objects into your entities). You can use template.projectTo and template.createEntityFromState or createEntityFromStoredState to create your entities.

You can use new EntityPathPathIterableWrapper(paths) for automatically wrapping your result paths.