MDGen is a UML class model-driven J2EE code generator. It uses XML to describe a class model and applies XSL template to generate session/entity EJBs, Struts code, deployment descriptors, database create/drop scripts, resource file and Ant build script.