简体   繁体   English

玩! framework 2.0 crud模块

[英]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.以下是您的选择:

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注射器。

I have also tried for Simple CRUD Play Application. 我也试过简单的CRUD播放应用程序。

I have created Student CRUD. 我创建了学生CRUD。

You can find it Here 你可以在这里找到它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM