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
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 {
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 =
3 matches
Mail list logo