- ER diagrams represent the abstract representation of the data model,
- class diagrams represent the static structure and behavior of the proposed system.
- Main building blocks of ER diagram are entities,
- main building blocks of class diagram are classes,
there is a close relationship between entities in ER diagrams and classes in class diagrams
they are mapped 1 to 1 . no extra classes or no extra entities
it means
- there is a class in class diagram for every entity in ER diagram
- there is a entity in ER diagram for every class in class diagram
as shown below
---------------------------------------------
class diagram ER Diagram
---------------------------------------------
class A <----> Entity A
class B <----> Entity B
class C <----> Entity C
class D <----> Entity D
class E <----> Entity E
is it always there is 1 to 1 mapping between classes in class diagram and entities in ER diagram
or
is there any exceptional moment?
if there is exceptional moment when will that happens?
P.s - I am not having issue with understanding the differences between these 2 diagrams.