Exercise Self Review Questions Objectives

represented in its generalization form before it can be used in UML notation {disjoint,mandatory} Property Building Lot U Building Lot Property Total category PROPERTY and its similar generalization: d Building Lot Property Operationsmethods Not applicable Visibility Not applicable Exercise in this chapter requires the students to develop a UML class diagram based on a given Chen EER diagram. Rational Rose Professional Data Modeler by IBM is one of the tools used to construct UML diagrams. However, in the following exercise students will use Microsoft Visio software UML Static Structure to draw the diagram.

4.2 Exercise

25 Based on Chen EER diagram below, draw its equivalent representation of UML class diagram using Visio Professional software. Show all constraints and association clearly. Person Customer Employee Account CurrentAccount DepositAccount OnlineAccount PersonalAccount BusinessAccount O Holds d d Sex IC_num DOB Day Month Year Name Fname Lname Mname 1 M AccountNo Balance InterestRate FirstChequeNo LastChequeNo Tel_Num Figure 4-1 : EER diagram for Bank application

4.3 Self Review Questions

1. Do you agree that UML is similar with EERD? Justify your answer. 26 2. What is the type of UML diagram is the most relevant for database design? 3. Is there any specific notation for union types in UML ? 4. How union types in EER diagram is represented in UML notation? 5. How relationship strength is illustrated in UML? 27

5.1 Objectives

5 Introduction Once conceptual design is completed, the conceptual model is mapped into a logical model during logical database design phase. Since there are various types of data model can be used in conceptual design, designer needs to choose one data model in order to transform it to its equivalent logical representation. Keep in mind that, logical model is dependent of the type of target DBMS to be implemented, therefore one need to ensure that the type of logical model developed matches with the type of DBMS. Therefore if the type of DBMS is Relational DBMS RDBMS, a relational data model needs to be developed. In this practical, since the target DBMS is an Object-relational DBMS ORDBMS specifically Oracle 9i, an object-relational data model will be developed. It is assumed that students are familiar with mapping conceptual model to a relational data model. The objectives of this practical include: To differentiate the terminology and notation of UML class diagram with SQL3 and Oracle 9i. To develop object-relational notation which are equivalent to UML class diagram notation To identify the strategies for representing a class inheritance tree in Object- relational data model based on UML class diagram To map association and composition in UML class diagram into its equivalent representation of object-relational data model in Oracle 9i platform 28

5.1 Theoretical Background