>
> Is there a way to do ONE2ONE between different classes?

Sure, it is as easy, as adding two indexes for in and out of the relation.
create index on Owns(in) unique
create index on Owns(out) unique
in previous Ziink example.

It might be easier to understand, if you imagine, that vertexes don't know 
anything about their relations to other vertexes, only relations 
(themselves are objects, stored in one list) ar aware of it. So you don't 
want to think about vertexes cardinality, but only trying to make those 
relations as unique, as needed.



On Monday, November 2, 2015 at 11:42:39 AM UTC+5, scott molinari wrote:
>
> Is there a way to do ONE2ONE between different classes? I'd play around 
> with getting that going, but I upgraded my dev version of ODB and now 
> Studio isn't working. :-(
>
> I also created a suggestion and an issue. 
>
> https://github.com/orientechnologies/orientdb/issues/5260
> https://github.com/orientechnologies/orientdb/issues/5261
>
> Scott
>

-- 

--- 
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.

Reply via email to