ER Diagrams - Cheat Sheet
ER Diagrams - Cheat Sheet
An entity is a thing that exists either class a type of static structure diagram
physically or logically. Entities diagram that describes the structure of a
can be thought of as nouns: a company, a system by showing the system's
computer. classes, their attributes, operat‐
A relationship captures how entities are ions, and the relationships
related to one another. among objects.
Relationships can be thought of as verbs, object shows a complete or partial view
linking two or more nouns. diagram of the system at a given moment
Entities and relationships can both have Three compartments of class diagram:-
of time
attributes. Name of the class
domain conceptual model of the domain
Attributes of the class
model that incorporates both: behaviour
Instance-level r/s in class diagrams Methods of the class
and data
dependency connection between
Class visibility diagram
dependent and independent UML relations notation
model elements; exists when + public
changes to one element may - private
cause changes in dependent # protected
element; this relation in uni-
/ derived
directional
~ package
association association is a relationship
between two classes when, To specify the visibility of a class member
that allows one instance to (i.e. any attribute or method), these
perform an action on behalf notations must be placed before the
of another member's name