Differences between EER and UML

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

I'm putting together a visual representation of a database I designed.

I've downloaded MySQL workbench and can create a EER diagram.

What's the difference between this and a UML diagram?

Also, where does a ERD come into this?

I can't find a question on here that matches what I'm after here?

Thanks.

回答1:

I think by UML diagram you mean : UML Class Diagram. [ there are other UML diagrams also]

Used for Database Design. Like class diagrams support also subclass -superclass [specialization and generalization]. So entities in EER diagrams has attributes not methods.Because they show just plain data.

UML Class Diagrams

Used for Object Oriented Analysis-Design.

Can be used to model databases also : there are UML class profiles for it. [I think UML profiles for Database Designs are NOT good as ER diagrams]

But in simple terms classes are blueprints in which objects instantinated . So classes may have methods-functions as well as attributes.Software classes definitely has methods but conceptual classes[ used for domain modeling] may not.



转载请标明出处:Differences between EER and UML
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!