Andrew McDonough

Please note: This page is imported from my wiki, which hasn't been updated in over 10 years. Some of the formatting was lost during the import. I'll try to get around to fixing it someday.


Middlegen is a utility to automate the generation of database reliant code.

Quick Guide

  • Download Middlegen from sourceforge
  • Extract into a suitable directory e.g. c:\java\middlegen
  • If you don’t have it, download and install Ant
  • Build by running ant in the Middlegen directory
  • Copy the samples directory and rename to your project directory
  • Modify build.xml to point to the correct database and change appropriate property namings
  • Modify config/database/{yourdatabase}./xml so it has the appropriate connection settings
  • Run ant in the project’s home directory

Middlegen for Hibernate

Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn