Create User Entity
This page provides directions to create the
User
entity using ArgoUML.
The model is shown below for your reference.
We will create
User
in a package named org.andromda.timetracker.domain.
When finished, the explorer pane in ArgoUML will look like the screen shot
on the right.
- In the TimeTracker model create a package called
domain
under
org.andromda.timetracker.
- In the explorer pane on the left, right-click on the
domain
package
and select Create DiagramNew Class Diagram. Type "Domain Objects" as the name of
this diagram on the property panel.
- Add a new class to the diagram and name it User.
- Add the stereotype called
Entity
to User.
- Add the 3 attributes to User.
- Make sure the User class is selected and go to its property panel at the bottom
of the screen.
- Click on the
Tagged Values
tab and add a new tagged value by clicking
in the right column and selecting the tagged value named
andromda_persistence_table
from the drop down menu. This tagged
value allows you to override the default table name for the entity. In the
left column type the value USERS.
- Make sure your class diagram matches the one shown above.
- Make sure that the ArgoUML explorer panel matches the screen shot shown above.
- Save the model by selecting FileSave Project.
Now go back to the main tutorial page and continue from where you left off.