Middlegen

Middlegen 2.1 Released!

Overview of changes/fixes:

  • Hibernate plugin - various fixes and patches.
  • Torque plugin (new) - generate Torque config files.
  • XMI plugin (new) - generate some XMI diagrams from the generated code.
  • Adapter plugin (new) - making it easier to switch persistence layer for generated Struts/JSP code.
  • Many core/plugin bugs fixed.

Overview

Are you tired of the headaches involved with editing deployment descriptors and entity bean source code? Middlegen is a free general-purpose database-driven code generation engine based on JDBC, Velocity, Ant and XDoclet. If you already have a database, you can use Middlegen to generate...

  • Persistance layer with EJB (CMP 2.0)
  • Persistance layer with JDO
  • Persistance layer with Hibernate
  • Persistance layer with Torque
  • Database GUI with JSP/Struts

Developping database-driven applications with Middlegen is easy:

  1. Create the database with your preferred database modeler tool
  2. Configure Middlegen to access the database and read the database schema
  3. Run Middlegen from Ant, and (optional) with the GUI tool, rename tables and columns, tune relationships and type-mappings
  4. Generate your source code with Middlegen
  5. Run XDoclet to generate the additional files like EJB homes and interfaces, and deployment descriptors
  6. Compile and deploy your application

The Middlegen GUI

Powered by Velocity Powered by Ant Powered by XDoclet Hosted by SourceForge

Works with HsqlDb Works with PostgreSQL Works with MySQL Works with McKoi

Works with Hibernate Works with JBoss Built with Maven