Annotation Type RelatedTo
public @interface RelatedTo
NodeEntity fields 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.
- Michael Hunger
public abstract String type
- name of the relationship type, optional, can be inferred from the field name
public abstract Direction direction
- direction for the relationship, by default outgoing
public abstract Class<? extends NodeBacked> elementClass
- target class, required for collection based fields (no generic inferring)
Copyright © 2011. All Rights Reserved.