Update LinkVia documentation - specifying direction seems required
clepelli opened this issue · comments
Hello Graham,
First of all, thanks for your work.
I have generated an OrientDB shema thanks to the default shema generator.
In case of "linkvia" relationships, I have found that I must not rely only on the ToVertex / FromVertex annotations in the Edge class, but I must also specify the direction IN/OUT in the LinkVia annotation (wich defaults to OUT).
If I do not, the relatedProperty may be constructed with the wrong adjacentProperty.
see
And then there is trouble here :
What happens then is the edge in the database may link from one of the linked vertices to itself instead of the other.
I would advise to remove the default OUT value and / or update the readme.
Best regards,
Clément.