[orientdb] Re: Adding edges with properties after using Document API
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 the wiki for the Document API and for the Graph API how to get the otherone. This my help new commers a lot. -- --- 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.
[orientdb] Re: Adding edges with properties after using Document API
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 interface to create edges by calling: ODatabaseDocumentTx db = pool.acquire(); db.command(new OCommandSQL("create edge Living from #10:3 to #11:4 set from = '2000-01-01', to = '2012-04-06'")).execute(); Right? PS Thanks for helping me out, I am leaving from MongoDB because of the Graph functionality so I was more "fimilar" to start of with the Document API and now I do not want to rewrite things. -- --- 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.
[orientdb] Adding edges with properties after using Document API
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 am using OPartitionedDatabasePoolFactory right now. But I have no Idea how to add Edges. Do I have to swicht to graph API? And if so how can I do this - I mean reopening another connection pool is not the best option right? -- --- 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.