|recursive relation in same class [message #1034262]
||Fri, 05 April 2013 08:06
| Simon Zutterman
Registered: October 2012
My domain model has 1 class: Goal
I want to be able to draw a recursive link 'Conflict' between 2 Goals, but if i for example draw GoalA --> GoalB, i would like the editor to also automatically map GoalA <-- GoalB, and the editor would stop me from being able to draw a GoalA <-- GoalB link, since it would already exists.
I tried to do it with 2 references (Conflict1 & Conflict2) marked as eOpposites but I can't get that to work. The editor maps the opposite relation, but off course sees the two references as different.
if i draw GoalA -conflict1-> GoalB,
it also maps GoalA <-conflict2- GoalB,
but then it still allows me to create a GoalB -conflict1-> GoalA,
also mapping the recursive GoalB <-conflict2- GoalA
What i want is a single recursive relation: GoalA -conflict-> GoalB,
where it would automatically map GoalB <-conflict- GoalA
This would be very useful as it will also display both directions of a conflict relation in the properties view, instead of in 2 fields if you have 2 references as eopposite.
Thanks in advance for any help!
[Updated on: Fri, 05 April 2013 08:22]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02028 seconds