Greetings all. I have posted a new release of Struts2Builder over at SourceForge.
Struts2Builder is a Java code generation system. It will log into an existing Postgres or MySql database, examine the metadata, and automatically generate a real, live, functioning Struts2 / Spring / Hibernate CRUD (Create, Read, Update, Delete) system for every table in that database, as well as automatically generate all the pertinent configuration files. It is intended to create a baseline, which you can build upon to create your final customized application. It can be downloaded (for free, of course) at http://struts2builder.sourceforge.net. I have provided it to the Struts community in hope it helps everyone get their projects done faster. Here are the changes for this release: 1) The system now recognizes foreign keys, and generates the Hibernate code necessary to build the complex hierarchy of objects based on those foreign keys. One-to-One and One-to-Many relationships are supported; Many-to-Many relationships are not. 2) Validation edits are now done on the Table list. All Class names must be capitalized and unique, all Plural names must be capitalized and unique, and each Class name must be different from its respective Plural name. These validation edits were not done in 0.1.0. 3) All metadata is now returned by the DatabaseMetaData class, instead of writing specific queries against the individual databases, which is how it worked in 0.1.0. This will allow other database products to be supported much more quickly and easily than if we had not made that change. Thanks to Dave Newton for the suggestion. 4) The default layout of the web page is wider now. The default width of 800 pixels looks and feels cramped on a modern 1280 x 1024 monitor, so we widened the default to 1100 pixels, giving more horizontal space to each application. 5) The “Local Nav Bar” list, on the left side of the screen, now contains live links for each table; you no longer have to hit “Return” from one table's data to go back to the Main Application in order to select a different table. Just click the link for a different table name. All feedback on Struts2Builder is appreciated. Currently. the project's status is set to "Alpha". I'd especially like to hear opinions from people about whether they think it's ready to be promoted to "Beta" status. --Tom