Finish E/R, E/R Relation Mapping, Other High Level Models




CS157a

Chris Pollett

Oct 18, 2023

Outline

Introduction

E/R To Relational Mapping

Step 1 - Mapping Entity Sets

Step 2 - Mapping Weak Entity Sets

Mapping Weak Entity Sets

Step 3 - Mapping One-One relationships

Step 4 - Mapping Many-One relationships

Mapping Many One Relationships

Step 5 - Mapping Many-many relationships

Mapping Many Many Relationships

Step 6 - Mapping Multiway relationships

Step 7 - Mapping Isa Relationships

In-class Exercise

Unified Modeling Language

UML Classes

Notation for UML Classes

UML Associations

Notation for UML Association

Self Associations

Self Association Example

Association Classes

Association Class Example

Subclasses

Subclass Example

Aggregation and Composition

Aggregation and Composition Example

UML to Relations

We now describe how a UML Diagram can be mapped to a relational schema: