Hi, when you create both vertex1 and vertex2, why don't you keep a 
reference to those and use those references to add the edge?


On Friday, March 20, 2015 at 12:29:18 PM UTC, Sathwik B P wrote:
>
> Hi Guys,
>
> OrientDB 2.0.2
>
> Transaction is started, 2 vertices are added. In order to create an edge 
> between the 2 newly added vertices we query for the vertex again from the 
> graph. It turns out to return a null object.
>
> *Are objects added in the same transaction not visible for re-reads?*
>
> Here is the scenario.
>
> Transaction begin
>
> Add vertex1
> Add vertex2
>
> Add edge
> *     Get vertex1 -> this is null object*
>
> Transaction commit
>
> regards,
> sathwik
>

-- 

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