Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Difference between UML and ER diagram

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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:

S. No.CATEGORYUMLER diagram
1.Full FormUML stands for Unified Modelling Language.ER Diagram stands for Entity Relationship Diagram.
2.

DefinitionIt 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.
3.RelationshipIt is the parent of ER diagram.It is the child of UML.
4.UseIt is used to design the entire software.It is used to design only the databases.
5.ScaleIt is mainly used in case of large-scale software development.IT can be used in case of database development of all scales.
6.ComponentsIt has use cases and workflows.It has entities, attributes and relationships.
7.

Diagrams involvedIt involves use case diagrams and activity diagrams.It is itself involved in representation.
8.Primary UserIt 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.
9.DepictionFlow of control is depicted.Relationships are depicted.
10.ModellingIt 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).
11.

StatesIt involves a final and an initial state.It has no state representation.
12.Shapes usedIt is uses circles, rectangles with round corners, arrow heads, diamonds, rectangular bars etc.It uses only 3 shapes (oval, rectangle and diamond).
13.Use of swimlanesIt uses swimlanes.It does not use swimlanes.
14.TimeIt can represent time taken during activities.It does not depict time.
15.TypesIt is of 2 types, Structural UML diagrams and Behavioral UML diagramsIt does not have types, however, it contains entities, relationships and attributes each of which have several types.

My Personal Notes arrow_drop_up
Last Updated : 22 Jun, 2020
Like Article
Save Article
Similar Reads