CSE311 - IAH - Slide03 - EER - Compatibility Mode
CSE311 - IAH - Slide03 - EER - Compatibility Mode
Enhanced Entity-Relationship
(EER) Modeling
Chapter Outline
n EER stands for Enhanced ER or Extended ER
n EER Model Concepts
n Includes all modeling concepts of basic ER
n Additional concepts:
n subclasses/superclasses
n specialization/generalization
n categories (UNION types)
n attribute and relationship inheritance
n Constraints on Specialization/Generalization
n The additional EER concepts are used to model
applications more completely and more accurately
n EER includes some object-oriented concepts, such as
inheritance
Specialization (1)
n Specialization is the process of defining a set of
subclasses of a superclass
n The set of subclasses is based upon some
distinguishing characteristics of the entities in the
superclass
n Example: {SECRETARY, ENGINEER,
TECHNICIAN} is a specialization of EMPLOYEE
based upon job type.
n Example: MANAGER is a specialization of
EMPLOYEE based on the role the employee plays
n May have several specializations of the same
superclass
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Slide 4- 10
Specialization (2)
n Example: Another specialization of EMPLOYEE based on
method of pay is {SALARIED_EMPLOYEE,
HOURLY_EMPLOYEE}.
n Superclass/subclass relationships and specialization can be
diagrammatically represented in EER diagrams
n Attributes of a subclass are called specific or local
attributes.
n For example, the attribute TypingSpeed of SECRETARY
n The subclass can also participate in specific relationship
types.
n For example, a relationship BELONGS_TO of
HOURLY_EMPLOYEE
Specialization (3)
Generalization (2)
Displaying an attribute-defined
specialization in EER diagrams
n Disjointness Constraint:
n Specifies that the subclasses of the specialization
must be disjoint:
n an entity can be a member of at most one of the
subclasses of the specialization
n Specified by d in EER diagram
n If not disjoint, specialization is overlapping:
n that is the same entity may be a member of more
than one subclass of the specialization
n Specified by o in EER diagram
Specialization/Generalization Hierarchies,
Lattices & Shared Subclasses (3)
n Inheritance