Beruflich Dokumente
Kultur Dokumente
CSC3064
Database Engineering
Lecture 4 EERM
Limitations of ER Modeling
Enhanced ER Modeling
Semantic concepts are incorporated into the original ER model and
Specialization/Generalization
Specialisation
Process of maximising differences between members of
an entity by identifying their distinguishing
characteristics. This is a top-down approach of
identifying lower-level entities.
Superclass
An entity type that includes one or more distinct
Generalisation
Process of minimising differences between entities by
identifying their common characteristics. This is a
bottom-up approach of identifying higher-level entities.
Subclass
A distinct sub grouping of occurrences of an
Specialization
Generalization
Several classes with common features are generalized into a
superclass;
original classes become its subclasses
Example: CAR, TRUCK generalized into VEHICLE;
both CAR, TRUCK become subclasses of the superclass
VEHICLE.
We can view {CAR, TRUCK} as a specialization of VEHICLE
Alternatively, we can view VEHICLE as a generalization of CAR
and TRUCK
Specialization/Generalization
Generalization
Specialization/Generalization
10
An entity in a subclass
11
12
Attribute Inheritance
13
15
14
16
Constraints on Specialization/Generalization
Participation constraint
Determines whether every member in superclass must
participate as a member of a subclass.
May be mandatory or optional.
design
subclasses)
form
17
18
19
20
Disjointness Constraint:
Specifies that the subclasses of the specialization must be
disjoint:
Completeness Constraint:
Whether an instance of a supertype must also be a
member of at least one subtype
Total specialization rule yes (double line)
Partial allows an entity not to belong to any of the
subclasses
Shown in EER diagrams by a single line
21
22
A vehicle
could be
a car, a
truck, or
neither
25