yes, you are right. But you have to cast the vertex to an OIdentifiable first. Thanks Gregor
On Monday, February 2, 2015 at 9:47:25 AM UTC+1, xvik wrote: > > vertex.getRecord() will return document if i remember correctly (look api). > All non document objects in orient (object proxy, vertex) are backed by > document, so it's always possible to get original document object > > понедельник, 2 февраля 2015 г., 14:28:09 UTC+6 пользователь Gregor Frey > написал: >> >> Hi, >> I'm using the OrientDB with Vertex and want to convert a Vertex to an >> JsonObject (which can be used as payload for the eventbus). Is there a >> simple conversion method? >> The ODocument class provides a method toJSON, which converts the document >> to a JsonString. But a Vertex is not an ODocument (unfortunately) and I do >> not find a way to transform the Vertex to a ODocument. Does anyone have any >> recommendations? >> Ciao >> Gregor >> > -- --- 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.
