Hi Olof,
if you want to put an embedded list into an embedded map try this code 


OClass cl=g.createVertexType("ip", "V");
cl.createProperty("str_a", OType.STRING);
cl.createProperty("emb_b", OType.EMBEDDEDMAP);
List<String> lista=new ArrayList<String>();
lista.add("#12:1");
lista.add("#12:2");
List<String> lista2=new ArrayList<String>();
lista2.add("#12:3");
lista2.add("#12:4");
Map<String, Object> map = new HashMap<String, Object>();
map.put("key_1",lista);
map.put("key_2",lista2);
    
Vertex v1=g.addVertex("class:ip");
v1.setProperty("str_a","value_a");
v1.setProperty("emb_b",map);

Regards,
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.

Reply via email to