org.springframework.data.neo4j.annotation
Annotation Type Query
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Query
Field that provides access to an iterator which is created by applying the traversal that is built by the supplied
traversal builder to the current node. The result elements are automatically converted to appropriate element
entity class instances.
@GraphTraversal(traversalBuilder=FriendTraversalBuilder.class, elementClass=Person.class)
Iterable<Person> friends;
- Since:
- 15.09.2010
- Author:
- Michael Hunger
value
public abstract String value
- Returns:
- Query to be executed %d will be replaced by the node-id of the current entity other placeholders by the given params
- Default:
- ""
elementClass
public abstract Class<?> elementClass
- Returns:
- target type to convert the single result column (if any) to.
- Default:
- java.lang.Object.class
params
public abstract String[] params
- Returns:
- parameters that are replaced in the to the @see query-string
- Default:
- {}
Copyright © 2011. All Rights Reserved.