Hi Aleks, take a look at the NOTE section: https://github.com/orientechnologies/orientdb/wiki/Graph-Database-Tinkerpop#retrieve-all-the-edges
Lvc@ On 21 January 2014 18:28, Aleksandar Vidakovic <[email protected]>wrote: > Hi, > > I was struggling to get edges persisted in OrientGraph although vertices > are stored with no problem. Not sure if I am missing here something obvious. > > Example: > > [code] > > // NOTE: using Spring in my code > Graph graph = ... > > Vertex a = graph.addVertex("class:A"); > Vertex b = graph.addVertex("class:B"); > > // NOTE: 1st try not working > Edge edge = graph.addEdge(null, b, a, "has"); > > // NOTE: 2st try not working > edge = b.addEdge("has", a); > > graph.shutdown(); > > [/code] > > But: as soon as I add any property to the edge (e. g. > edge.setProperty("uid", ...) ) it gets persisted. > > Is this intentional? As far as I can remember there is no indication in > the docs about this behavior (neither OrientDB nor Tinkerpop). > > Thanks in advance for any clarifications. > > Cheers, > > Aleks > > -- > > --- > 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/groups/opt_out. > -- --- 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/groups/opt_out.
