Most of the menu-bar choices for the Model Browser are described below.
The following choices are available.
If you edit a model for which you have already generated domain classes, remember to regenerate the code again for the model to pick up your changes.
Assuming you have created a model, you can then create classes for it. This menu provides the choices for creating, editing, and deleting the classes for your model. The choices are as follows:
Fill in the following fields to complete your class description:
You must fill in the following to create the association between the
classes.
In the Student-Advisor association, the VapFaculty plays the role of advisor forVapStudent. The only role that VapStudent will play in the VapFaculty class is that of advisedStudents, one of many advised students.
The last part of definition for the association has to do with navigability and cardinality (how many).
You can specify the cardinality of the roles between the two classes as follows:
When Required is unchecked it means that zero instances of this object is valid in the association. When Many is unchecked, it means that only one instance is allowed for the object to fulfill its role in the association.
In the illustration of the Student-Advisor association, the advisor role played by VapFaculty could have a 0:1 cardinality in the VapStudent object meaning that the VapStudent may or may not have an advisor. The cardinality of the advisedStudents role played by the VapStudent could be 0:many meaning that the VapFaculty object may have no students to advise or many.