Create User to UserVO Dependency

This page provides directions to create the dependency from User to UserVO using MagicDraw 16.5.

  1. Open the Value Objects class diagram in the vo package.
  2. From the Containment Tree on the left, drag the User class on to the diagram. Warning: It is important to bring in the existing User class from the domain package into this diagram. Don't create a new User class in this diagram. Doing so will create a new class in the vo package - this is not our intention. All we need is a reference to the existing User class in the domain package.
  3. Select the Dependency relationship from the toolbar (5th icon from the common group). Now left-click the mouse on the User class, drag it to the UserVO class and release the mouse. A dependency relationship is added between the two classes. When clicking and releasing the mouse make sure you are in the region of the class name and not over an attribute or a method, otherwise you will be creating dependencies between attributes and/or methods!
  4. Make sure your class diagram matches the one shown on the right.
  5. Save your timetracker model by selectingFile > Save Project.
  6. Export it in EMF/UML2 format by selectingFile > Export > EMF UML2 (v2.x) XMI File. Choose C:/timetracker/mda/src/main/uml as export directory and clickExport.

Please go back to the main tutorial page and continue from where you left off.