20041122 Monday November 22, 2004

The AppFuse Generator I found the AppFuse Generator project in my comments last night. Richard So seems to have created a nice code-generation tool for AppFuse. It looks like it can create/modify all the files you need to CRUD a database table. I took a brief look at the code and it's all based on Velocity templates, so you should be able to easily tweak things.

This tool does seem to generate the DAOs/Managers - which can lead to more code to maintain. It would be nice if it could be modified to be similar to AppGen where there's a "detailed" version (that generates everything) and a "default" version (which only generates the web tier classes). The default version could use the generic "dao" and "manager" beans. I wonder if this tool supports running/installing the same table more than once? This currently doesn't work too well with AppGen, but shouldn't be too hard to fix.

In reality, I'm pumped that Richard has created this, as well as a project to back it up. I especially like that he's going to try and create an Eclipse Plug-in as part of this project. Nice work Richard! Posted in Java at Nov 22 2004, 04:39:35 AM MST 8 Comments

Comments:

Hibernate Synchronizer already does a lot of the things AppFuseGenarator does, but not only for AppFuse. It has an extensible Velocity based templating, and there are a lot of templates for actions/jsps too. If someone wants to start an Eclipse plugin, I suppose, Hibernate Synchronizer would be a good start point.

Posted by Ahmed Mohombe on November 22, 2004 at 05:15 AM MST #

Wow, pretty soon we won't be writing code at all. Sounds like a neat tool since many applications rely on CRUD functionality.

Posted by Mike Shoemaker on November 22, 2004 at 07:03 AM MST #

yes, the tool should be able to re-generate/re-install updates to the same table(s) as many times as you like. Probably what would be better would be to have an extensible architecture where only the generated classes (model, dao's) etc. would serve as a base and any customizations could occur in an inherited class (like Hibernate Synchronizer) BTW.. I was thinking of using Hibernate Synchronizer.. but because I'm so lazy.. I needed to generate and merge everything into the directories so that you can just bring up your app in Tomcat .. and since Hibernate Synchronizer doesn't come with source code, I decided to roll my own.. Anyway hope it's useful, I'll try and get the plugin working in a couple of weeks....

Posted by Richard So on November 22, 2004 at 04:35 PM MST #

I think these CRUD codes can replaced by something like database configuration or class reflection. We can use some components to produce pages and actions from it . Just like Trails did. I like it.

Posted by Xi Ping Wang on November 22, 2004 at 10:11 PM MST #

@ Richard So : but Hibernate Synchronizer does come with sources. It's an open source project, and you can find the repository here: http://sourceforge.net/projects/hibernatesynch, and you can find the sources in it's CVS repository (I have them on my PC too - but since 15 Aug, there are no more updates, cause the author ..., well the info it's on his project page: "http://www.binamics.com/hibernatesynch/".

Posted by Ahmed Mohombe on November 23, 2004 at 04:32 AM MST #

Hi, everyone.

I have working about 1 or 2 weeks on prepare a set of templates for Hibernate Synchonizer to generate an functional struts webapp CRUD codes, but instead of spring i'm using a little service framework that i build to my self (I'd like to use spring but i haven't learned yet). To some task i had to modify a little the Syncronizer's source code.

I hope to share this code soon.

Posted by Cesar Delgado on November 23, 2004 at 09:13 AM MST #

@ Cesar Delgado : here: "http://www.sourcebeat.com/docs/Spring%20Live/Rev_4/Spring%20Live_SampleChapter.pdf" there's a sample chapter from Matt. The use of Spring with Hibernate is very simple described there, and even I understood Spring from it :).

Posted by Ahmed Mohombe on November 23, 2004 at 09:50 AM MST #

Hibernate Synchronizer is good :)

Posted by Oens on January 11, 2006 at 12:24 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud