[orientdb] Re: The vertex has been deleted

2015-06-04 Thread Mohammad Naghavi
Here the code with some more comments to help understand my case a bit better: import com.tinkerpop.blueprints.impls.orient.OrientGraph; import com.tinkerpop.blueprints.impls.orient.OrientGraphFactory; import com.tinkerpop.blueprints.impls.orient.OrientVertex; /** * Created by mohamnag on 03/06

[orientdb] Re: The vertex has been deleted

2015-06-04 Thread Mohammad Naghavi
I can not do that. The fact is that this code is a simplified version of my whole application. There is function in class A which starts with a transaction to save some data into DB, then it calls another function in class B which also starts a (sub-) transaction to store something in DB and wh

[orientdb] Re: The vertex has been deleted

2015-06-04 Thread alessandrorota04
Hi Mohammad, I tried your code using the graph java api and v2.0.10 of orientdb and it works. Try to write : OrientVertex vertex = graph.addVertex("class:test"); graph.commit() OrientGraph graph2 = graphFactory.getTx(); vertex.setProperty("test", "value"); Regards, Alessandro -- --- You re

[orientdb] Re: The vertex has been deleted

2015-06-04 Thread Mohammad Naghavi
Hi, here comes the full test class: import com.tinkerpop.blueprints.impls.orient.OrientGraph; import com.tinkerpop.blueprints.impls.orient.OrientGraphFactory; import com.tinkerpop.blueprints.impls.orient.OrientVertex; /** * Created by mohamnag on 03/06/15. */ public class test { private static O

[orientdb] Re: The vertex has been deleted

2015-06-04 Thread alessandrorota04
Hi Mohammad, you can post all the code of the class test. Regards, Alessandro -- --- 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...@goo