Actually the better approach for me is to stick with the document api and
do like so:
ODatabaseDocumentTx db = pool.acquire();
OrientGraph g = new OrientGraph(db);
Out of interest is the a way to cast ODocument to Vertex and vice versa?
PS Would be nice if you could provide a one liner in
Thanks for the quick response Colin
If I got you right, I can switch to the Graph API and use the Document API
functionality out of the Graph API right? Does this mean I can get
a ODatabaseDocumentTx via the Graph API also? This would be very great!
But anyway I can always use the sql
I have used the Document API to insert all my Vertex (all classes are
extending V). Now I want to model relations ships with a valid period of
time. Lets say Person - is living {from : 2000-01-01, to : 2012-04-06}
- London. What is the right option for me to add such a relationship
(edge). I