[ 
https://issues.apache.org/jira/browse/SYNCOPE-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074403#comment-16074403
 ] 

Francesco Chicchiriccò commented on SYNCOPE-1138:
-------------------------------------------------

{quote}
a) Is left/right dependent on which object the relationship was initially 
defined on? In the example above, does the PRINTER return a "right-key" for the 
relationship, and the DEVICE a "left-key"?
{quote}

That's my idea to improve the current implementation, yes.
To keep things simple, I would replace the {{rightKey}} field with {{otherKey}}.

{quote}
b) How can I set the relationship on the other object? I tried in 
AnyObjectDataBinderImpl.create doing something like 
"otherEnd.add(relationship);" after the ARelationship is set on "anyObject", 
but I get an error
{quote}

That's usually the trickiest part, I don't have any ready-to-cook recipe, I 
should take a closer look. Maybe an idea to have a feature branch for this 
issue where we can commit our partial work?

> Update RelationshipTO to also report the "left" end of a relationship
> ---------------------------------------------------------------------
>
>                 Key: SYNCOPE-1138
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1138
>             Project: Syncope
>          Issue Type: Improvement
>          Components: common, console, core
>            Reporter: Colm O hEigeartaigh
>            Assignee: Colm O hEigeartaigh
>             Fix For: 2.0.5, 2.1.0
>
>
> Currently, the RelationshipTO object only reports the "right" end of a 
> relationship. However, as relationships in Syncope are bi-directional, we 
> should also report the "left" end of a relationship. This will make searching 
> for AnyTypes a bit easier than it is at present.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to