Yes, relateTo can only be used in Node Entities as Neo4j only allows linking Nodes with Relationships.
What is your use-case ? Cheers Michael Am 01.11.2011 um 06:29 schrieb Gonfi den Tschal: > (using sdg 1.1.0RELEASE) > > when using @RelatedToVia in a @RelationshipEntity i get a strange > compilation error: > > The method relateTo(Culture, Class<MyClass>, String) is undefined > for the type MyOtherClass > > i assume the reason is that it can only be used in @NodeEntity? > the javadoc for @RelatedToVia says "Annotation for NodeEntity fields that..." > > on the other hand the tutorial > http://static.springsource.org/spring-data/data-graph/docs/current/reference/multi/tutorial_neo4j.html > states that "Relationships are first-class citizens in Neo4j". > > what's the way of linking relationships to relationships? > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user