ERD and Class Diagram...

What is the difference between ERD and Class Diasgram...??

Replies

  • PraveenKumar Purushothaman
    PraveenKumar Purushothaman
    Hi Ghani,

    The differences between class diagram and ERD, class diagram/model represent both structural and behavior features of a system (attribute and operations). Classes models act as a mold for the object instance. In class model, classes related to each other in association relationship, part-whole relationship and generalization relationship. Class models are more likely to map into real-world objects.

    The entity model more likely to map into tables in database (repetitive records). Although database allow us create foreign keys and constraints to link up the records, but it's doesn't imply the relationships which modeled in class diagram, and somehow the relationships in entity models are more difficult to be understand by human.

    Generally you can have one class in class diagram mapped to one entity in ERD. But for some situation, you can also have one class mapped to more than one entities, or one entity mapped to multiple classes. This is depends on your design (i.e. performance tune for database).

    Of course you can add entity into your ERD without mapping it to classes in class diagram (just like the case mentioned above).

    Hope this helps you! 😀
  • ghani
    ghani
    Praveen-Kumar
    Hi Ghani,

    The differences between class diagram and ERD, class diagram/model represent both structural and behavior features of a system (attribute and operations). Classes models act as a mold for the object instance. In class model, classes related to each other in association relationship, part-whole relationship and generalization relationship. Class models are more likely to map into real-world objects.

    The entity model more likely to map into tables in database (repetitive records). Although database allow us create foreign keys and constraints to link up the records, but it's doesn't imply the relationships which modeled in class diagram, and somehow the relationships in entity models are more difficult to be understand by human.

    Generally you can have one class in class diagram mapped to one entity in ERD. But for some situation, you can also have one class mapped to more than one entities, or one entity mapped to multiple classes. This is depends on your design (i.e. performance tune for database).

    Of course you can add entity into your ERD without mapping it to classes in class diagram (just like the case mentioned above).

    Hope this helps you! 😀
    thanx very much praveen...

You are reading an archived discussion.

Related Posts

Metso is a global supplier of sustainable technology and services for mining, construction, power generation, automation, recycling and the pulp and paper industries. Our 29,000 employees in more than 50...
Dilip Chhabria's DC Design has come up with a brand new, India's first sports car design and it's called 'Avanti'. I searched online a bit to find out the engine...
If you ever wanted to make free phone calls to Indian mobile phones, your dreams have come true. Enter freephoo - the app has been launched in India today. The...
There is a growing concern that AI may be a threat to jobs. The evidence seems overwhelming that artificial intelligence (AI)—including machine-learning, language-translation, and speech- and pattern-recognition software-is rendering jobs...
No. There is no violation of the First Law. The pedestrian may have to eat one more mouthful for the work done. However, Pavegen Tiles have shown a practical way...