在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.