Re: [Neo4j] NodeBacked to Node

2011-08-23 Thread sambodhi
Thanks Michael, that was pretty helpful. I was already using @GraphTraversal but findAllByTraversal() and createEntityFromState() methods are what I was actually looking for. Thanks! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-NodeBacked

[Neo4j] NodeBacked to Node

2011-08-22 Thread sambodhi sagi
Hi! I am facing a small problem with Spring Graph database APIs. I am not sure how to get a NodeBacked object from Node. For example, say I created a traversal description, as a result I get Node object and not the NodeBacked entity, which in my case is Product @NodeEntity public class Product {

Re: [Neo4j] NodeBacked to Node

2011-08-22 Thread Michael Hunger
generally you can use graphDatabaseContext.createEntityFromStoredType(node) or graphDatabaseContext.createEntityFromState(node, type) But normally you wouldn't do that but rather pass your traversal description to a repository or your entity. GraphRepositoryProduct repo =