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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 14:21:02  来源:igfitidea点击:

Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails?

javaruby-on-railscrudscaffolding

提问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 Hates_

Grailshas scaffolding.

Grails有脚手架。

回答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

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

谷歌代码上有怪癖。我还没有尝试过,但看起来很有希望。

回答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

回答by Bozho

AppFuse.

应用熔断器

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

它非常强大,也许它对于所讨论的任务来说太强大了,但它做得很好。

回答by Kalle

Check out Tynamo

看看泰纳摩