Create User to UserVO Dependency
This page provides directions to create the dependency from
User
to
UserVO
using ArgoUML. The model is shown below for your reference.
- Select the Value Objects class diagram in the
vo
package.
- 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. DO NOT 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 tool
from the toolbar. 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. The drawing direction is significant, so make
sure you drag from
User
to UserVO.
- Make sure your class diagram matches the one shown above exactly.
- Save your
TimeTracker
model by selecting FileSave Project.
Please go back to the main tutorial page and continue from where you left off.