Hi, Unfortunately now we can not. If you wish to do this you may add feature request but to be honest it is so rare case that it will not be implemented long time. So if you wish you could try to provide pull request.
On Sat, Mar 22, 2014 at 9:18 PM, <[email protected]> wrote: > 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. > -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- 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.
