Basically I want a Vertex_Type with some 4 or 5 properties, I extented this 
vertex to a simple node, now i want to populate all properties keys, and 
then give them values.

On Wednesday, 1 April 2015 19:47:06 UTC+5:30, Colin wrote:
>
> Hi Khawar,
>
> What is it you're trying to accomplish in the end?
>
> Thanks,
>
> -Colin
>
> Orient Technologies
>
> The Company behind OrientDB
>
> On Wednesday, April 1, 2015 at 8:51:58 AM UTC-5, Khawar Nawab wrote:
>>
>> I want to extend a VERTEXTYPE by a simple Vertex???
>> how can i do it? 
>>
>> public static void main(String[] args) {
>> final String DB = "t1";
>> final String URL = "remote:localhost";
>> final String DB_URL = URL + "/" + DB;
>>
>> final String USERNAME = "root";
>> final String PASSWORD = "root";
>> Orient.instance().registerEngine(new OEngineRemote());
>>
>> OrientGraphNoTx graphNoTx = new OrientGraphNoTx(DB_URL, USERNAME, 
>> PASSWORD);
>> System.out.println("db connected");
>>
>> for (int i = 1; i <= 2; i++) {
>> OrientVertexType vertexType = graphNoTx.createVertexType("NODETYPE" + i);
>> vertexType.createProperty("nodeid", OType.INTEGER);
>> vertexType.createProperty("name", OType.STRING);
>>
>> }
>> OrientVertexType ovt= graphNoTx.getVertexType("NODETYPE1");
>>  
>>  graphNoTx.commit();
>> graphNoTx.shutdown();
>> System.out.println("done");
>> }
>>
>

-- 

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