Create User to UserVO Dependency
This page provides directions to create the dependency from
User
to
UserVO
using RSM.
- Open the
Value Objects
class diagram in the
vo
package.
- 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.
- 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.
- Make sure your class diagram matches the one shown on the right.
- Save your
timetracker
model by double-clicking on
timetracker.emx
and clicking on
File > Save
(Ctrl + S).
-
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.