Spring Data Graph

org.springframework.data.neo4j.annotation
Annotation Type RelationshipEntity


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface RelationshipEntity

Annotation to declare a Pojo-Entity as graph backed relationship entity. It is used by the Neo4jRelationshipBacking aspect to add field advices as well as the RelationshipBacked interface. Relationship entities cannot be instantiated directly. The will be provided by relationship fields and the methods relatedTo and getRelationshipTo introduced to the node entities.

Since:
27.08.2010
Author:
Michael Hunger

Optional Element Summary
 boolean useShortNames
           
 

useShortNames

public abstract boolean useShortNames
Returns:
true if the property names default to field names, otherwise the FQN of the class will be prepended
Default:
true

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.