Hi,
Is this possible:
1. Create a base Vertex class ----> graph.createVertexType(SOME_BASE);
2. Create a property ----> SOME_BASE.createProperty("id", OType.STRING);
3. Create a subtype -> graph.createVertexType(ONE_SUB_TYPE,
TYPE, SOME_BASE, TYPE)
4. Create another subtype -> graph.createVertexType(ANOTHER_SUB_TYPE,
TYPE, SOME_BASE, TYPE)
and then create en index on SOME_BASE that unique per subtype + id property?
Something like: SOME_BASE.createIndex(IDX_UNIQUE_ID_PER_SUBTYPE,
OClass.INDEX_TYPE.UNIQUE_HASH_INDEX, "class", "signature")
Regards,
-Stefán
--
---
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.