After adding many instances of OrientVertex, I created a composite index
using some of the properties like the following
<MY_OClass>.createIndex("Entity.Id", "UNIQUE", new String[]{key1, key2,
key3, key4});
..where the key1..4 are of INTEGER type (not sure if this the right way to
create the composite key).
Now I am trying to verify if the entity exists before trying to add one,
like the following
Vertex exists = graph.getVertexByKey("Entity.Id", new Object[]{key1,
key2, key3, key4});
But the value of the exists is always null. Note that I could always query
in the console
select from index:Entity.id where key = [1224736769, 2, 14, 22]
and get the appropriate entity back. I just want to be sticking to the
graph API in my java code.
What am I doing wrong? Thanks for your help.
--
---
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.