The first entity that we will create in the TstUniversity model is the department model class. This is a relatively simple class with four attributes.
Add the four attributes as follows:
Attribute name | Attribute type | Value required |
---|---|---|
department | String | Yes |
building | String | No |
phone | String | No |
room | String | No |
For each attribute, do the following:
For an object to exist in ObjectExtender it must have a unique identifier. This is also known as an object identifier (OID). We will use the attribute, department, as the OID for the Department class.
To define an object identifier, do the following:
This displays the name of the attribute in the Object ID list.
This concludes creating the class, TstDepartment.
Save the model.