Hi Olof,
I didn't understand if you're using JavaScript or Java API, however i
posted two codes:
if you use a graph database, the code in JavaScript is this:
var g= orient.getGraph();
g.command("sql", "insert into Prova(emb) values ({'test4': 3})");
g.commit();
With Java API the code is:
OClass test = g.createVertexType("Test","V");
test.createProperty("emb", OType.EMBEDDEDMAP);
Map<String,Object> params= new HashMap<String, Object>();
params.put("test1", 1);
Vertex v = g.addVertex("class:Test");
v.setProperty("emb", params);
Regards,
Giulia
--
---
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.