I\'m aware of the built in code generation and refactoring one can do with the \"Source\" and \"Refactor\" menu items in Eclipse.
I also use the Commonclipse plugin to
Telosys ( http://www.telosys.org/ ) is a simple and efficient tool for Java code generation.
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).
The model defining all the entities can be created from scratch (DSL text model) or from an existing database (DB model).
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.