Bump :)
On Tuesday, January 20, 2015 at 1:09:05 PM UTC-6, Colin wrote:
>
> I have a shiny new graph database using lightweight edges and running
> against the 2.0 final release.
>
> I've created a schema that looks like this:
>
> create class Organ extends V
>
> create property Organ.Name String
>
> create property Organ.out_Folders LinkBag
>
>
>
> create index OrganUnique ON Organ(out_Folders) UNIQUE
>
>
> basic Java code is:
>
>
> Vertex organ = db.addVertex("class:Organ");
> organ.setProperty("Name", "Disney");
>
> Vertex f1 = db.addVertex("class:Folder");
> f1.setProperty("Name", "Pic1");
>
> Vertex f2 = db.addVertex("class:Folder");
> f2.setProperty("Name", "Doc1");
>
> organ.addEdge("Folders", f1);
> organ.addEdge("Folders", f2);
> organ.addEdge("Folders", f1);
>
>
> db.commit();
>
>
> I'd expect an ORecordDuplicatedException to be thrown when commit() is
> called.
>
> Instead, all three Vertex folders are added to the organ Vertex, and the
> index shows one f1 as the key against organ and one f2 as the key against
> organ.
>
> I modeled this after this code:
>
>
> https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/test/java/com/orientechnologies/orient/graph/blueprints/EdgeIndexingTest.java
>
> Thanks for any input!
>
> -Colin
>
--
---
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.