OrientGraphFactory factory = *new* OrientGraphFactory(

"remote:localhost/OrientDB", "root", "user").setupPool(1, 10);

OrientGraph graph = factory.getTx();

OClass department = graph.createVertexType("DEPRT", "v");

department.createProperty("name", OType.*STRING*);

department.createProperty("id", OType.*INTEGER*);

department.createProperty("mansger", OType.*STRING*);

graph.commit();

I have used same thing its working but in graph it's not showing and also I 
am getting some wornings

eb 25, 2016 6:34:34 PM com.orientechnologies.common.log.OLogManager log

INFO: OrientDB auto-config DISKCACHE=1,215MB (heap=247MB os=3,511MB 
disk=899,479MB)

Feb 25, 2016 6:34:34 PM com.orientechnologies.common.log.OLogManager log

WARNING: The command 'create vertex type 'DEPRT' as subclass of 'V'' must 
be executed outside an active transaction: the transaction will be 
committed and reopen right after it. To avoid this behavior execute it 
outside a transaction (db=OrientDB)

Feb 25, 2016 6:34:34 PM com.orientechnologies.common.log.OLogManager log

WARNING: The command 'create vertex property 'name' as type 'STRING'' must 
be executed outside an active transaction: the transaction will be 
committed and reopen right after it. To avoid this behavior execute it 
outside a transaction (db=OrientDB)

Feb 25, 2016 6:34:35 PM com.orientechnologies.common.log.OLogManager log

WARNING: The command 'create vertex property 'id' as type 'INTEGER'' must 
be executed outside an active transaction: the transaction will be 
committed and reopen right after it. To avoid this behavior execute it 
outside a transaction (db=OrientDB)

Feb 25, 2016 6:34:35 PM com.orientechnologies.common.log.OLogManager log

WARNING: The command 'create vertex property 'mansger' as type 'STRING'' 
must be executed outside an active transaction: the transaction will be 
committed and reopen right after it. To avoid this behavior execute it 
outside a transaction (db=OrientDB)


On Thursday, February 25, 2016 at 4:35:16 PM UTC+5:30, 
[email protected] wrote:

> Hi,
> you can use 
>
> OClass department=graph.createVertexType("Department", "V");
>
> department.createProperty("name", OType.STRING);
>
>
> Best regards,
> Alessandro
>

-- 

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