Hi Eswar,
I tried your code and I solved the problem by adding the last instruction
of this code:
OrientGraphFactory factory = new OrientGraphFactory(currentPath).setupPool(1
, 10);
Graph g = factory.getTx();
Vertex v = g.addVertex("class:BUS");
v.setProperty("Name", "hyd");
Vertex v1 = g.addVertex("class:STATION");
v1.setProperty("name", "sec");
Edge edge = g.addEdge(null, v, v1, "DISTANCE");
((OrientTransactionalGraph) g).commit();
When I query BUS
<https://lh3.googleusercontent.com/-EbZHDNviMPI/Vs6D4fi5tLI/AAAAAAAAABE/ULDt5mypl6E/s1600/Immagin.png>
Hope it helps
Luca
--
---
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.