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 OrientGraphFactory graphFactory = new
OrientGraphFactory("memory:testdb", "admin", "admin");
public static void main(String[] args) {
OrientGraph graph = graphFactory.getTx();
graph.executeOutsideTx(noTx -> {
noTx.createVertexType("test");
return null;
});
OrientVertex vertex = graph.addVertex("class:test");
OrientGraph graph2 = graphFactory.getTx();
vertex.setProperty("test", "value");
}
}
Regards,
Mohammad
On Thursday, June 4, 2015 at 10:02:07 AM UTC+2, [email protected] wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.