Annotation Interface Gremlin


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface Gremlin
Indicates that the annotated method executes a Gremlin query using TinkerPop. The query will be executed against a graph database supporting the TinkerPop API. Example usage:
 
 @Gremlin("g.V().hasLabel('Book').has('title', title)")
 List<Book> findByTitle(@Param("title") String title);
 
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The Gremlin query to execute.
  • Element Details

    • value

      String value
      The Gremlin query to execute. Supports parameter substitution using method parameters annotated with @Param.