Hi,
i have tried this code and it seems to work
OrientGraph graph = new OrientGraph("memory:test");
Data data = new Data();
data.setNome("New Data");
data.addData("a","b","c");
JSONObject json=new JSONObject();
json.put("data", data);
Vertex first = graph.addVertex(null);
first.setProperty("name","anything");
first.setProperty("allprop",json);
Vertex second = graph.addVertex(null);
second.setProperty( "name", "Marko" );
Edge lucaKnowsMarko = graph.addEdge(null, first, second, "relation");
Bye, Alessandro.
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.