Hi,
you can try with the following code.
OrientGraphNoTx g = new OrientGraphNoTx(path);
OClass person = g.getRawGraph().getMetadata().getSchema().getClass("Person"
);
person.createProperty("name", OType.INTEGER).createIndex("UNIQUE_HASH_INDEX"
);
person.createProperty("age", OType.INTEGER).createIndex("NOTUNIQUE");
person.createIndex("age2", OClass.INDEX_TYPE.NOTUNIQUE_HASH_INDEX, "age");
g.shutdown();
Hope it helps.
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.