有没有办法从现有的MySQL数据库生成UML类图? [英] Is there a way to generate a UML class diagram from an existing MySQL database?

查看:2820
本文介绍了有没有办法从现有的MySQL数据库生成UML类图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有任何软件可以做到这一点?存储引擎是InnoDB,所以外键用于连接图表中的表(如果这样的软件存在)。

Was just wondering if there was any software out there to do this? The storage engine is InnoDB so the foreign keys are in place to connect the tables up in the diagram (if such software even exists).

推荐答案

您可以使用 Enterprise Architect 从数据表中生成显示外键约束的数据模型。

You can generate a data model from the data table that shows foreign key constraints using Enterprise Architect.

这就给你一个UML工具中的数据模型,你可以轻松地跟踪到其他UML工件。它不会从数据表中自动创建类模型。这不是最佳实践,你的类模型直接镜像你的数据模型,但这将给你一个良好的开端。

That gives you a data model in a UML tool that you can easily trace to other UML artifacts. It does not auto-create a class model from the data tables however. It is not best practice to have your class model directly mirror your data model, but this would give you a good head start.

这篇关于有没有办法从现有的MySQL数据库生成UML类图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆