views:

3929

answers:

11

Is there a CRUD generator utility in Java like Scaffolding in Rails? Can be in any framework or even plain servlets. Must generate controllers + views in jsp, not just DAO code...

+3  A: 

Netbeans has something like this.

There's a demo here: http://www.netbeans.org/kb/55/persistence-demo.html

sjbotha
+8  A: 

Grails has scaffolding.

Hates_
+1. but note, grails is actually based on Groovy - but groovy is backwards compatible with java and you can mix and match groovy and java classes in the same project.
frankodwyer
Also note that JRuby and Rails works acceptably on the JVM as well.
Bill K
sorry for the downvote, but I think the question specified Java, not JVM
Bozho
@Bozho: and "Java" can only ever mea "Java, the language" and is never used as "Java, the platform"?
Joachim Sauer
you are right in general. But in case of such ambiguity it is proper to first ask the OP what he really means. Otherwise the more straightforward (i.e. Java-the-language) is assumed. Imo :)
Bozho
A: 

I've got this a long time ago.

http://mahosoft.com/docs/WhitePaper-WEB-App-Spanish.pdf

Google translation to english:

http://translate.google.com/translate?hl=en&u=>

May be outdated though.

OscarRyz
+1  A: 

JBoss Seam has a scripting utility called seam-gen that will create scaffolding:

http://docs.jboss.org/seam/1.1BETA2/reference/en/html/gettingstarted.html

mattsidesinger
+1  A: 

There's krank on Google Code. I haven't tried it yet, but it looks promising.

Adam Jaskiewicz
A: 

Since the question was asked, there are several frameworks for Java that came out. Check out Spring Roo, and Play Framework. There is also Skyway Builder, which I think predates both.

Jean Barmash
A: 

Try Grails at http://www.grails.org/

Azizasm
+1  A: 

AppFuse.

It is very powerful, perhaps it will be too powerful for the task in question, but it does it well.

Bozho
+2  A: 

Spring Roo seems to be exactly what you're looking for: CRUD code generation, spits out pure Java code that can be made tun run entirely independant from the framework.

Michael Borgwardt
A: 

Check out Tynamo

Kalle
A: 

Try JRapid.

Christian