将 UML 转换为 Java [英] Convert UML To Java

查看:39
本文介绍了将 UML 转换为 Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我依次搜索了几个论坛和谷歌,但找不到合适的方法来做到这一点.欢迎任何帮助.

i searched several forums and google in turn but couldn't find a proper way to do this. any help would be welcome.

推荐答案

UML到java的转换真的很差.除了 Omondo 使用图表<>模型<>代码实时同步或图表<>模型实时同步,然后合并 UML 和 Java Id 以提供高质量的代码,所有其他工具都只是废话!!我的意思是:

The UML conversion to java is really very poor. Except Omondo using either diagram<>model<>code live synchronization or diagram<>model live synchronization and then merge of UML and Java Ids in order to deliver quality code all the other tools are just crap !! I mean that:

  • 为什么只使用一个包生成代码?
  • 为什么在同一个包中混合类和接口.对于 Java 架构师来说,混合类及其相关接口是如此愚蠢,那么为什么出于代码生成目的 UML 认为两者应该在同一个包中?如果不在同一个包中工作,为什么不创建继承?如果为了生成脏代码而混合不应该混合的内容,你怎么敢说 UML 是对象建模?

这种模型驱动的开发非常平庸,我已经停止使用它们,只有实时代码和模型同步提供了可接受的解决方案.我建模并获取我的代码,如果我的代码不是我认为好的,那么我更改我的代码并更新我的图表.我可以在我的代码和图表中添加 java 注释,因此我的模型可以立即部署和测试,没有更多痛苦的愚蠢测试等......

This Model Driven development is so mediocre that I have stopped using them and only live code and model synchronization provide an acceptable solution. I model and get my code, if my code is not what I consider good then I change my code and my diagram is updated. I can add java annotation in my code and my diagrams therefore my model could be immediately deployed and tested, no more painful stupid test etc...

UML 可能很棒,但模型驱动的开发充满了难以置信的谎言!从未做过任何手动 Java 代码行的非生产建模人员正在尝试创建架构和代码并将其提供给我们(例如开发人员)以完成工作.打印的文档不可用等...

UML could be fantastic but Model driven development has been full of incredible lies !! Non productive modelers who never done any manual line of java code are trying to create architectures and code and give it to us (e.g. developer) in order to complete the job. The printed documentation is unsuable etc...

请不要生成代码,因为如果您使用 Omondo EclipseUML,那么您将了解应如何生成代码.这是带有实时代码和模型同步的 UML.我得到了我的模型,然后完全手动重构了我的代码,而不会丢失我的模型和图表.如果与 Hibernate 一起使用,这是一项了不起的技术,因为我的图表可以使用 Java 注释进行实时部署和测试.哇哦

No code generation please because if you use Omondo EclipseUML then you will understand how the code should be generated. This is UML with live code and model synchronization. I got my model and then totally refactor my code manually without losing my model and diagrams. Marvelous technology if used with Hibernate because my diagrams could be deployed live and tested using java annotations. Whaoo

这篇关于将 UML 转换为 Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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