Hi,

We are storing a tree structure using a LinkList for the children. We need 
it to be LinkList (as opposed to EmbeddedLinkList) because the children are 
referenced directly from other parts of the system. I can see from the 
examples that you can quite easily create a tree of EmbeddedLinkList using 
JSON:
insert into Profile (name, address) values ('Luca', { "@type" : "d", 
"street" : "Melrose Avenue", "@version" : 0 } )

However doing the same with LinkList does not fly:
insert into TreeE content ({Children: [{"@class" : "TreeE"}, {"@class" : 
"TreeE"}]});

Gives:
java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
com.orientechnologies.orient.core.db.record.OIdentifiable


What's the best way to create this tree (assuming a tree can have several 
thousand nodes)? I am assuming you guys are going to say through the Java 
API, but I thought I'd ask just in case there's a better way...

Regards,
Simon

-- 

--- 
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