Use of template.fetch() for a relationship entity?
The javadoc for template.fetch() seems to imply that it can be used for relationship entities as well as node entities, but when I try to use it for a relationship entity I get a ClassCastException:
org.neo4j.kernel.impl.core.RelationshipProxy cannot be cast to org.neo4j.graphdb.Node
Is fetch() supposed to work for relationship entities or is it just for node entities?
If just for node entities, is there a recommended way to force the loading of properties for a relationship entity? When I use template.findOne(relationshipId, relationshipClass), the properties of the returned relationship entity object are null, presumably because it is lazy loaded.
Thanks for any help.