Hey, I'm new to using Orient, but I am very excited by this concept. I've 
ran into a small issue I was hoping you all could help with. When invoking 
the addEdge() function, in the documentation it shows I can do something 
like this:

person1.addEdge("class:Friend", person2, null, null, "since", "2013-07-30");

However, when I try that I get an compiler error for too many parameters. It 
only allows:

person1.addEdge("Class:Friend", person2);
or
graph.addEdge("class:Friend",jake,tom,null );

Is there anyway to add that extra property, that I see in the documentation. I 
produced this using your most current snapshot download from 2 days ago. Here 
is my full code if it helps:

import com.tinkerpop.blueprints.*;
import com.tinkerpop.blueprints.impls.orient.*;
import com.tinkerpop.blueprints.util.EdgeHelper;

public class addEdge {
    public static void makeEdge(){
        OrientGraphFactory factory = new 
OrientGraphFactory("remote:localhost/Articles", "ME", "pword7");
        OrientGraph graph = factory.getTx();
        try{
            Vertex person1 = graph.addVertex(null);
            Vertex person2 = graph.addVertex(null);
            person1.addEdge("class:Friend", person2, null, null, "since", 
"2013-07-30");   //does not compile

            graph.commit();
            System.out.println("We have committed");

        }
        catch( Exception e ) {
            graph.rollback();
            System.out.println("We have failed sir");
        }
        finally {
            graph.shutdown();
        }
    }
}


-- 

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