Jotschi
Jotschi

Reputation: 3632

How to get org.neo4j.graphdb.Node from a SDN NodeEntity?

Is there a way to get the org.neo4j.graphdb.Node object that corresponds to the Spring Data Neo4j NodeEntity object?

My current workaround is to use the NodeEntity graphId value to load the org.neo4j.graphdb.Node object but i want to avoid loading the node again.

Upvotes: 1

Views: 88

Answers (1)

Michael Hunger
Michael Hunger

Reputation: 41676

template.getPersistentState(entity) -> Node or Rel

Upvotes: 1

Related Questions