Hi,
this in the example with document database

ODatabaseDocumentTx db = new ODatabaseDocumentTx(path);
db.open("root","root");
ODocument c = new ODocument("Contract");
c.field("name", "contract 1");
c.save();

List<OIdentifiable> linklist = new ArrayList<OIdentifiable>();
linklist.add(c);

ODocument p = new ODocument("Person");
p.field("name","alessandro",OType.STRING);
p.field("list", linklist, OType.LINKLIST);
p.save();
    
db.close();

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

Reply via email to