适用于Struts 2应用程序的CRUD生成器 [英] CRUD generator for Struts 2 application

查看:68
本文介绍了适用于Struts 2应用程序的CRUD生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一个基于Java 5& Java构建的应用程序.具有Oracle 11g DB的Struts2 MVC框架.

I have an already existing application built on Java 5 & Struts2 MVC framework having Oracle 11g DB.

应用程序具有大量表,这些表通常使用插入查询或更新语句进行更新 而且我正在寻求开发CRUD应用程序,并避免执行任何手动脚本.

Application has large number of tables which are often updated using insert queries or update statements and I am looking to develop a CRUD application and avoid any manual script execution.

表的数量非常大,彼此之间有依赖性,因此我一直在寻找一个Java框架,该框架可以直接基于现有表结构生成代码,并具有允许上传带有数据的excel并提供批量更新功能的灵活性.

Number of tables are very large with dependency over each other, so I was looking for a java framework which can directly generate the code based on existing table structure, with the flexibility to allow upload excel with data and provide a bulk update features.

尝试过Spring Roo,但想知道现有的Struts 2 MVC是否可以使用更多框架.

Tried with Spring Roo but want to know if there are more framework which can be used with existing Struts 2 MVC.

推荐答案

如果要将CRUD应用程序与Struts2一起使用,则应查看

If you want to use CRUD application with Struts2 then you should look into Struts 2 CRUD Tutorial .

Struts中的应用示例 Struts 2 CRUD示例

The application example from Struts Struts 2 CRUD Example

此示例的创建尽可能简单,因此它没有使用所有高级(集成)功能,例如Spring IoC,Hibernate Open-session-in-view,OS Sitemesh,注释等.

This example was created to be as simple as possible and as such, it does not use all of the advanced (integration) features such as Spring IoC, Hibernate Open-session-in-view, OS Sitemesh, annotations, etc .

您还可以在示例. https://github.com/apache/struts-examples"rel =" nofollow noreferrer> GitHub .

You can also look at other Examples at GitHub.

关于Java代码生成,您可以使用 Jboss工具.

About java code generation you can use Jboss Tools.

Hibernate Tools可以轻松生成,测试和制作Hibernate或JPA映射项目的原型.用它来运行查询,浏览映射并为您的数据项目生成代码.

Hibernate Tools provides easy generation, testing and prototyping of your Hibernate or JPA mapped projects. Use it to Run queries, browse mappings and generate code for your data projects.

如果您致力于生成Java代码,请考虑逆向工程部分.

Consider Reverse Engineering section if you work on generating Java code.

放入 休眠工具参考 引导至桌面,以阅读和帮助您使用Hibernate进行代码生成的各个方面.

Put Hibernate Tools Reference Guide to the desktop to read and help with any aspects of code-generation with Hibernate.

参考:

使用Struts 2视频轻松CRUD

这篇关于适用于Struts 2应用程序的CRUD生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆