EER Modeling
EER Modeling
(EER) Modeling
◼ EMPLOYEE is
the superclass
for each of these
subclasses
◼ Type inheritance
◼ Subclass entity inherits all attributes and relationships of
superclass
◼ Example:
◼ SECRETARY (as well as TECHNICIAN and ENGINEER) inherit the
attributes Name, SSN, …, from EMPLOYEE
◼ Every SECRETARY entity will have values for the inherited attributes
Specialization (1)
◼ Process of defining a set of
subclasses of a superclass Job type
◼ Defined on the basis of some
distinguishing characteristic of the
entities in the superclass
◼ {SECRETARY, ENGINEER,
TECHNICIAN} is a specialization of
EMPLOYEE based upon job type.
◼ May have several specializations of
the same superclass
◼ Another specialization of
EMPLOYEE based on method of
pay is {SALARIED_EMPLOYEE,
HOURLY_EMPLOYEE}.
Specialization (2)