在Eclipse中使用的最佳Java代码生成工具或插件是什么? [英] What are the best Java code generation tools or plugins to use in Eclipse?

查看:572
本文介绍了在Eclipse中使用的最佳Java代码生成工具或插件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道内置的代码生成和重构功能可以通过Eclipse中的源和重构菜单项完成。

I'm aware of the built in code generation and refactoring one can do with the "Source" and "Refactor" menu items in Eclipse.

我还使用Commonclipse插件轻松利用构建了hashCode,toString和equals方法的Apache Commons类。

I also use the Commonclipse plugin to easily make use of the Apache Commons classes that build hashCode, toString, equals methods.

为在Eclipse IDE下轻松生成Java源代码,我还应该了解其他哪些插件或工具?

What other plugins or tools should I be aware of for generating Java source easily under the Eclipse IDE?

推荐答案

Telosys http://www.telosys.org/ )是一种简单有效的Java代码生成工具。

Telosys ( http://www.telosys.org/ ) is a simple and efficient tool for Java code generation.

此代码生成器可以作为 Eclipse插件 http://marketplace.eclipse.org / content / telosys-tools ),也可以作为命令行界面 https://github.com/telosys-tools-bricks/telosys-cli/wiki )。

This code generator is available as an Eclipse Plugin (http://marketplace.eclipse.org/content/telosys-tools) and also as a Command Line Interface (https://github.com/telosys-tools-bricks/telosys-cli/wiki).

模型定义所有实体都可以从头创建(DSL文本模型)或从现有数据库(数据库模型)创建。

The model defining all the entities can be created from scratch (DSL text model) or from an existing database (DB model).

模板基于 Velocity http://velocity.apache.org ),可以从GitHub下载。所有模板都是可定制的,如有必要,可以从头开始创建新模板。
现有模板可以为JPA,Spring MVC,数据库文档,REST API等生成代码。

The templates are based on Velocity (http://velocity.apache.org) and can be downloaded from GitHub. All the templates are customizable and new templates can be created from scratch if necessary. Existing templates can generate code forJPA, Spring MVC, Database documentation, REST API, etc.

这篇关于在Eclipse中使用的最佳Java代码生成工具或插件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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