NodeEntityfields that relate to other entities via relationships. Works for one-to-one and one-to-many relationships. It is optionally possible to define the relationship type, relationship direction and target class (required for one-many-relationships). Collection based one-to-many relationships return managed collections that reflect addition and removal to the underlying relationships. Examples:
@RelatedTo(elementClass=Person.class) Collection<Person> friends; @RelatedTo(type="partner") Person spouse;
public abstract String type
public abstract org.neo4j.graphdb.Direction direction
public abstract Class<?> elementClass
public abstract boolean enforceTargetType
Copyright © 2012 SpringSource. All Rights Reserved.