Hi Rahul,

could you try this code ?

public class MyClass {
   
    public static void main(String[] args){
       
        OrientGraph g = new 
OrientGraph("remote:localhost/dbName","root","root");
       
        // Create class and properties
        
        OClass college=g.createVertexType("College1", "V");
        college.createProperty("Id", OType.INTEGER);
        college.createProperty("hallticketno", OType.INTEGER);
       
        // Insert data
       
        OCommandGremlin command = new 
OCommandGremlin("g.addVertex('class:College1',[Id:108941, 
hallticketno:37])");
        g.command(command).execute();
       
        command = new 
OCommandGremlin("g.addVertex('class:College1',[Id:108942, 
hallticketno:37])");
        g.command(command).execute();
       
    }
}

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.

Reply via email to