Ron,

That can be easily accomplished using Middlegen and a few Velocity
templates. We use this sort of setup to generate beans, dao (interfaces
and implementations) and sqlmaps for over a hundred database tables...

It's quite useful to setup a new project, but it's difficult to
maintain. We've setup the whole code generation "procedure" in a matter
of days. Someone (another Philippe) also posted this:
http://issues.apache.org/jira/browse/IBATIS-129

It's nice to setup a new project, but I don't think Middlegen is the way
to go to integrate within a build environment. First off, it depends
largely on the JDBC driver's implementation of the Metadata interface,
which is rarely consistent and often not implemented. Also, you'd need
to have a live database always running so Middlegen can "synchronize"
your code...

Personnaly, I'd rather use XDoclet (or something similar) to accomplish
code generation at this level. Java 5 and its annotations could also be
interesting in this respect.

Cheers,
Philippe

Ron Grabowski wrote:
I would very much enjoy a simple ibatis sql map generator that would
generate resultMap nodes and basic select, insert, update, delete
statements given a connection string. Even better, something that would
also generate the necessary dao objects and interfaces for those
objects. The initial round of typing when setting up an ibatis project
is time consuming...

--- Larry Meadors <[EMAIL PROTECTED]> wrote:


Code gen gives me hives....and code gen for a totally non-standard
framework? Yikes, I'll pass, too.

Now, if they put out a nice JSF IDE? I would be on that like ugly on
Brandon. ;-)

Larry


On 9/19/05, Ted Husted <[EMAIL PROTECTED]> wrote:

Has anyone had a look at JetBrain's Fabrique?

* http://www.jetbrains.com/fabrique/index.html
The selling point is a fancy IDE and code generator, but the
underlying code framework is open source. I've started to look at

the

tutorial and developers guide, but haven't gotten too far into it

yet.

For data access, they have EJB and Hibernate options ready. Of

course,

I'm wondering how much fun writing an iBATIS option would be. :)

There was a SS review back in June, which meant with the sound of
cricket's chirping.

* http://www.theserverside.com/reviews/thread.tss?thread_id=26331

In Apache land, the only reference I see is one post in Tapestry,
which again met with resounding quiet.

Like the SS reviewer, "I would normally have no interest in a

product

like this, but I've had such a great experience with IDEA that I
decided to give it a try."

Of course, what the world really needs is an Eclipse plugin to

provide

some of the "Visual Fabrique" features. Sony's Beta format for

video

tapes was cool, but VHS won because JVC invited other vendors to

the

table.

-Ted.
http://www.husted.com/poe/






Reply via email to