Spring Data Neo4j

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


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

Annotation to declare an Pojo-Entity as graph backed.

Since:
27.08.2010
Author:
Michael Hunger

Optional Element Summary
 boolean partial
           If partial is set, then construction of the node is delayed until the entity's id has been set by another persistent store.
 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

partial

public abstract boolean partial

If partial is set, then construction of the node is delayed until the entity's id has been set by another persistent store. Only GraphProperty annotated fields will be handled by the graph storage.

Currently, only JPA storage is supported for partial node entities.

Returns:
true if the entity is only partially managed by the org.springframework.data.neo4j.support.node.Neo4jNodeBacking aspect.
Default:
false

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.