Add the GremlinGroovyModule to support our gremlin operations
diff --git a/src/main/java/net/onrc/onos/graph/GraphDBConnection.java b/src/main/java/net/onrc/onos/graph/GraphDBConnection.java
index 9682d51..b504c4b 100644
--- a/src/main/java/net/onrc/onos/graph/GraphDBConnection.java
+++ b/src/main/java/net/onrc/onos/graph/GraphDBConnection.java
@@ -12,6 +12,7 @@
import com.tinkerpop.blueprints.util.wrappers.event.EventTransactionalGraph;
import com.tinkerpop.frames.FramedGraph;
import com.tinkerpop.frames.FramedGraphFactory;
+import com.tinkerpop.frames.modules.gremlingroovy.GremlinGroovyModule;
public class GraphDBConnection implements IDBConnection {
public enum Transaction {
@@ -89,7 +90,7 @@
}
graph.commit();
// Make sure you reuse the factory when creating new framed graphs
- factory = new FramedGraphFactory();
+ factory = new FramedGraphFactory(new GremlinGroovyModule());
fg = factory.create(graph);
eg = new EventTransactionalGraph<TitanGraph>(graph);
}