UML for Database Design(2019) Flashcards
1
Q
UML for
Database Design
Overview
A
Unified Modeling Language
- Has no multiway relationships
- Allows attributes
- Uses similar format to a Class Diagram
-
Entities represented like classes
- Entities contain Attributes
- Association Lines drawn between Entities
- Association Attributes in their own Association classes
-
Entities represented like classes
2
Q
UML for Database Design:
Associations
A
- Same association types as in E/R Model
- Represented with Association Lines between “classes”
- Range is set on each end: “low..high”
3
Q
UML for Database Design:
Associations:
Many to Many Representation
A
Both sides of Association Line
between classes labeled with
0..*
4
Q
UML for Database Design:
Associations:
One to Many Representation
A
One of Association Line
between classes labeled with
0..1
The other labeled with
0..*
5
Q
UML for Database Design:
Associations:
One to One Representation
A
Both sides of Association Line
between classes labeled with
0..1
6
Q
UML for Database Design:
Association Attributes
A
- Represented with an Association Class
- Similar to the Relationship in ER Model
- The Association Class is placed just below an Association Line between two Entity Classes
7
Q
UML for Database Design:
Entity Class
A
- Similar to UML Class Diagram representation of classes
- Only has attributes, no “methods” section
- Class name on top
- Attributes in box
- Primary Key indicated with “PK” prefix