Java(任何框架)中是否有 CRUD 生成器实用程序,例如 Rails 中的 Scaffolding?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/414583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails?
提问by Sathish
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...
Java 中是否有 CRUD 生成器实用程序,例如 Rails 中的 Scaffolding?可以在任何框架甚至普通 servlet 中。必须在jsp中生成控制器+视图,而不仅仅是DAO代码...
采纳答案by Michael Borgwardt
Spring Rooseems 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.
Spring Roo似乎正是您要找的东西:CRUD 代码生成,生成纯 Java 代码,可以使 tun 完全独立于框架运行。
回答by Sarel Botha
Netbeans has something like this.
Netbeans 有这样的东西。
There's a demo here: http://www.netbeans.org/kb/55/persistence-demo.html
这里有一个演示:http: //www.netbeans.org/kb/55/persistence-demo.html
回答by OscarRyz
I've got this a long time ago.
我很久以前就有这个了。
http://mahosoft.com/docs/WhitePaper-WEB-App-Spanish.pdf
http://mahosoft.com/docs/WhitePaper-WEB-App-Spanish.pdf
Google translation to english:
谷歌翻译成英文:
May be outdated though.
不过可能已经过时了。
回答by Matt Sidesinger
JBoss Seam has a scripting utility called seam-gen that will create scaffolding:
JBoss Seam 有一个名为 seam-gen 的脚本实用程序,可以创建脚手架:
http://docs.jboss.org/seam/1.1BETA2/reference/en/html/gettingstarted.html
http://docs.jboss.org/seam/1.1BETA2/reference/en/html/gettingstarted.html
回答by Adam Jaskiewicz
回答by Jean Barmash
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.
自从问了这个问题,就出现了几个 Java 框架。查看 Spring Roo 和Play Framework。还有Skyway Builder,我认为它早于两者。
回答by Azizasm
Try Grails at http://www.grails.org/
在http://www.grails.org/尝试 Grails