Create User to UserVO Dependency

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

  1. Open the Value Objects class diagram in the vo package.
  2. From the model explorer 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 (7th icon from the class diagram 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.
  4. Make sure your class diagram matches the one shown on the right.
  5. Save your timetracker model by double-clicking on timetracker.emx and clicking on File > Save (Ctrl + S).
  6. SelectFile > Export.... Choose UML2 Model and then click onNext. As source select /TimeTracker/timetracker.emx and as destination browse to C:\timetracker\mda\src\main\uml.

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