Middlegen 2.0 VO has been released. It is a free general-purpose database-driven code generation engine based on JDBC, Velocity, Ant and XDoclet. If you already have a database, you can use Middlegen to generate code for a number of target platforms, including EJB and Hibernate ORM.
- Posted by: David Channon
- Posted on: January 13 2004 01:34 EST
The Middlegen design includes a plug-in architecture which facilitates particular aspects of a target system. Existing plugins include, simple java classes, EJB, JDO and now excellent support for Hibernate. The release also includes, servlet and struts plugins. In addition, Middlegen can be used for documentation duties by using the HTML plugin.
Middlegen has an optional graphical user interface for advanced tuning of relationships and type-mappings. The release includes an ANT task to automate the process. A sample application is included.
This has to be a favorite project due to one of the links on the leftbar on the home page :)
- What's new ? by Vagif Verdi on January 13 2004 19:53 EST
- What's new ? by David Channon on January 13 2004 22:11 EST
- Struts Plugin status ? by Juan Ignacio Cidre on January 14 2004 12:21 EST
- Middlegen 2.0 VO released by Shireesh Thanneru on January 14 2004 12:15 EST
I'm highly instersted in this project.
Unfortunately could not find any information about this release on Middlegen home page. Especially about new hibernate plugin, and possibly about GUI changes. Current Middlegen GUI is useless. If you have more than 3 tables, forget about GUI man :))
The primary web page contain general information on using Middlegen. I have a page on the Hibernate Wiki that details the Hibernate plugin as this is the target community. The URL link is this.
You can resize the GUI to graphically show many more tables than 3. Having said that I agree this is an area that does require improvement.
Thank you David for response. I downloaded new version of Middlegen with new Hibernate plugin and going to use it.
Middlegen GUI would greatly benefit from one simple feature: Find table by name.
If there are many tables (>50) it's hard to find table you are looking for.
Simple find would make it a lot easier to work with GUI.
Thanks for the feedback. I have added it to my list of TODOs.
Your request is more than reasonable - It should not be a problem.
Middlegen seems to be pretty good for fast development of prety-simple add-delete-list object application.
The previous release lacks of a good UI generator.
Has this version improved the Struts plugin?
Homepage did not change about this particular issue.
The Struts plugin hasn't been given any more work. Hopefully we'll have some more activity on it the next couple of months.
Take a look at JAG, (Jag.sourceforge.net) it does not support hibernate yet, but generates feature rich J2EE apps with STRUTS, from either a database or UML.
Jean-Luc van Hulst
Finalist IT Group
There has been recently renewed interest in this area and as such further enhancements are in the pipeline.
We are using Middlegen to generate Hibernate Mapping files from the database schema (around 100 tables) and we are very pleased with how well it does the job. Just point Middlegen to your schema to generate Hibernate Mapping files and then run the Hibernate hbm2java tool to generate Java source code and you will have the complete Object model from your data model with out writing a single line of Java or XML!
How do you handle changes in database? Do you have to recreate all the objects again or just one table object
The regeneration process regenerates all tables that are configured to be regenerated. The default is to process all tables though the Ant script has a nested table tag that can be used to restrict the set of tables that are processed.