Medea is a pragmatic code generation framework. It takes UML class and state diagrams in XMI format and uses XSLT templates to generate code for various technologies, tiers and complete applications: J2EE, CMP, Hibernate, JSP, Struts, JSF, jBPM, XSD
SG is an another next generation code generator which generates web-based javaapplications with Apache Cayenne RDBMS, Apache Struts 1.1, Displaytag 1.1 , AjaxTags support. It uses an excel user interface to gather beans and application data.