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
Have quality JavaBeans with no effort. Specify beans and their properties in a simple XML and have the Java sources be generated - always correct, complete, and consistent. Build in Maven 2 supported. Released as Maven artifact - see project web site.