Hey , I am using OrientDB 1.7.RC2 and Blueprint 1.6.0-SNAPSHOT.

List<ODocument> result = graph.getRawGraph().query(new 
OSQLSynchQuery("select from "+input.getType()+" where value = 
'"+input.getValue()+"'"));
        for(ODocument resultElement : result) {
            ODocument resultToDoc = resultElement.field("@RID");
            String rid = resultToDoc.getIdentity().toString();
            inputVertexList.add(graph.getVertex(rid));
            for(Vertex temp: 
graph.getVertex(rid).*getVertices*(Direction.BOTH)) 
{ // *Error comes in executing this statement*

                System.out.println("yes");
            }
        }

It gives error : java.lang.String cannot be cast to 
com.orientechnologies.orient.core.db.record.OIdentifiable

whereas if I do this : 

Vertex v1 = graph.addVertex("class:Account");
            Vertex v2 = graph.addVertex(null);
            Edge edge = v1.addEdge("Different",v2);
            for (Vertex v : graph.getVerticesOfClass("Account")) {
                System.out.println(v.getId());
                for(Vertex vv:v1.*getVertices*(Direction.BOTH)) {
                    System.out.println(vv.getId());
                }
            }

getVertices works fine here. Can please someone help.

-- 

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