JeeWiz Home  
The Model-Driven System Builder
JeeWiz Modeler's Help File for RSA/RSM
 
Contents  >   3.  The Persistence Tier
 


3.7 Modeling Multiple Relationships and Self-Linking

Under normal circumstances, link ends are identified by role names that in RSA/RSM act as accessors. But accessors on an entity must be unique. (Remember they are on the other end's entity than you can see as a role on the diagram.) So this dual function means there is slightly less flexibility in working with role names than can be found in other modeling tools. On the other hand this simplifies the issue a fair bit.

However it is the role/accessor name that you need to make unique in order to get the links to work correctly. Obviously you can't just use the other end's entity name as you should ordinarily.

The same principle applies to self linking relationships. You need to distinguish the role names at each end of the association.

The way to specify that a dataview relation refers to a particular entity relation, is to make the role names on both match up. This is also used to sort out which end of a self relationship is which.

The role/accessor names can be set by selecting the association (relation or dataview-relation) and selecting the general tab, by editing the end or dataview-end.


Links:  

Copyright © 2001-2006 New Technology / enterprise Ltd.