[英]play! framework 2.0 crud module
Im using play 2.0.1 to build my application. 我使用play 2.0.1来构建我的应用程序。 Also Im using Ebean for the backend layer and mysql as a database so far.
我也使用Ebean作为后端层,mysql作为数据库到目前为止。 Java as the language.
Java作为语言。
Question: 题:
Isn't there a CRUD module (dynamic) or a crud creation module? 是不是有CRUD模块(动态)或crud创建模块? I looked on the internet and it is very hard to find something regarding the new play framework 2.x.
我在互联网上看了一下,很难找到关于新游戏框架2.x的东西。
According to this thread there is none ... [play-framework] [2.0] CRUD Administration . 根据这个帖子,没有... [play-framework] [2.0] CRUD Administration 。
But some of the answers are old. 但是有些答案很古老。 Maybe something is in the pipeline?
也许有些东西正在筹备中?
Thanks in advance. 提前致谢。
There is no crud in play 2. Here are your options: 游戏中没有任何问题2.以下是您的选择:
Sample Code. 示例代码。 The samples like "ZenTasks" for front end, "Computer Database" for backend, and "Forms" for form stuff contain example code that can be quickly manipulated.
前端的“ZenTasks”,后端的“计算机数据库”和表单的“表单”等示例包含可以快速操作的示例代码。 Not as nice as real crud but you take what you can get.
不如真正的好,但你拿走你能得到的东西。
http://www.playframework.org/documentation/2.0/Samples http://www.playframework.org/documentation/2.0/Samples
glitter8. glitter8。 Current recommendations from forums are to use glitter8.
论坛目前的建议是使用glitter8。 See this as an example of a play specific crud replacement https://github.com/k33g/play-java-lazy.g8
将此视为特定游戏替换的示例https://github.com/k33g/play-java-lazy.g8
cato-crud-generator. 卡托-CRUD发电机。 I noticed this.
我注意到了这一点 Could check it out: http://alvinalexander.com/scala/crud-forms-play-framework-2-cato-crud-generator
可以查看: http : //alvinalexander.com/scala/crud-forms-play-framework-2-cato-crud-generator
I've implemented this simple CRUD library for Play2. 我已经为Play2实现了这个简单的CRUD库。 You can extend generic DAO objects from the library, and pass them to generic CRUD or API (JSON) controllers.
您可以从库中扩展通用DAO对象,并将它们传递给通用CRUD或API(JSON)控制器。 You only need to write the template code which is quite easy if you manipulate them from the examples.
您只需要编写模板代码,如果您从示例中操作它们就很容易。 Also works quite well with Guice injectors.
也适用于Guice注射器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.