Design Phase PT1

Selecting a Design Strategy

Object Persistence Formats

What are they

Plane Files, Relational Databases (RDBs), Object oriented and object relational databases, NoSQL data stores

Selecting the right format

Relational Databases (RDBs)

RDB Table/Entities

Entity Relationship Diagram (ERD)

Data types

Classes to ERD

  1. Classes usually mapped to a table with same attributes
  1. Class associations mapped to ERD relationships
  1. Class generalisations mapped to ERD tables
  1. Leave methods

Mapping Associations

Example

Mapping Generalisation SUPER CLASS METHOD

Example

Mapping Generalisation MULTIPLE CLASS METHOD

Example