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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

UML for Database Design:

Associations:

Many to Many Representation

A

Both sides of Association Line

between classes labeled with

0..*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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..*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

UML for Database Design:

Associations:

One to One Representation

A

Both sides of Association Line

between classes labeled with

0..1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly