The next step is to generate the Smalltalk classes that will support the Department class definition in our image. Before this can be done, we need to specify certain things regarding the kind of generation we wish to perform the application into which the generated Smalltalk classes will be stored.
Specifying the application into which the model is generated
Select the TstUniversityModel in the models view, then select Model Code Generation Options from the Models menu.
This launches the following dialog.
The name of the application used to store the generated Smalltalk classes that will make up the TstUniversity model should be TstUniversityModelApp. VisualAge will automatically create this application if it does not exist but any existing application can be used as long as it has a prerequisite of VapPersistence.
In addition to generating the Smalltalk code for the model classes, ObjectExtender is able to generate public interface features and methods that will allow the model classes to be used within a VisualAge composition editor. This should be selected (checked). Likewise we also will use the ObjectExtender feature that is able to generate persistent classes.
Generating the classes
The next step is to generate the Smalltalk classes that contain the code to support the execution of the TstUniversity model. Select Generate from the Models menu on the Model Browser.
The following classes will be generated: