Difference between UML and ER diagram
1. Unified Modelling Language (UML) :
UML is a modelling language that visually represents a software system.
2. ER Diagram :
ER diagram is a pictorial representation of the real-world entities and their relationships with each other.
Difference between UML and ER Diagram:
||UML stands for Unified Modelling Language.
||ER Diagram stands for Entity Relationship Diagram.
||It is a general modelling language which is used to visualize the design of a software system.
||It is a pictorial representation of the real-world entities and their relationships with each other.
||It is the parent of ER diagram.
||It is the child of UML.
||It is used to design the entire software.
||It is used to design only the databases.
||It is mainly used in case of large-scale software development.
||IT can be used in case of database development of all scales.
||It has use cases and workflows.
||It has entities, attributes and relationships.
||It involves use case diagrams and activity diagrams.
||It is itself involved in representation.
||It is used by developers to understand flow of program.
||It is made for the understanding of Stake holders and enterprise owners, to understand that their requirements have been correctly met.
||Flow of control is depicted.
||Relationships are depicted.
||It is a form of dynamic modelling as it can depict what activities are being performed at what time.
||It depicts static modelling (as unlike UML it does not depict state of the activities).
||It involves a final and an initial state.
||It has no state representation.
||It is uses circles, rectangles with round corners, arrow heads, diamonds, rectangular bars etc.
||It uses only 3 shapes (oval, rectangle and diamond).
||Use of swimlanes
||It uses swimlanes.
||It does not use swimlanes.
||It can represent time taken during activities.
||It does not depict time.
||It is of 2 types, Structural UML diagrams and Behavioral UML diagrams
||It does not have types, however, it contains entities, relationships and attributes each of which have several types.