Hi Rob;
You can use both document and graph at same db. or over orientgraph so you 
don't need to change your connection. Graph api is more sophisticated  api 
then document api. You can do what you want at document api, at graph api.

8 Mart 2016 Salı 01:17:52 UTC+2 tarihinde Rob Smith yazdı:
>
> I have an ODatabase object (database), and I want to do something using 
> the GraphAPI. Is this a good approach? Is there something better?
>
>         OrientGraph orientGraph = new OrientGraph(database.getURL());
>         orientGraph.getRawGraph().activateOnCurrentThread();
>
>         Vertex vert = orientGraph.addVertex();
>         ...
>
>         orientGraph.commit();
>
>         // return 'database' to active
>         database.activateOnCurrentThread();
>
>
>
>

-- 

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