I'm doing it like this

Vertex pruebaJson = graph.addVertex("class:Person");
JSONObject json = new JSONObject();

json.put("name","someone");
json.put("address","somewhere");
json.put("value","{'archetype_details':{'class':'ARCHETYPED','archetype_id':{'class':'ARCHETYPE_ID','value':'openEHR-EHR-COMPOSITION.report-mnd.v1'},'template_id':{'class':'TEMPLATE_ID','value':'Laboratory
 
Report'},'rm_version':'1.0.1'}}");

pruebaJson.setProperty("data", json.toString());

*This works but inserts it as a string inside the vertex instead of as an 
embedded document*, and then I can not use the type queries:
Select * from Person where data.name = 'someone'

How can I make it to insert it as an embedded document instead of as a text 
string?

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to