Spring/Hibernate实体管理Web界面/UI [英] Spring/Hibernate Entity Management Web Interface/UI

查看:84
本文介绍了Spring/Hibernate实体管理Web界面/UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个服务器应用程序,它通过多种协议向特定的客户端UI公开特定的模型以及基于该模型构建的服务集.这是一种服务器应用程序,一旦设置完成,就不需要太多的手动干预了.但是,有时(尤其是在首次部署解决方案时),有时必须对某些模型对象进行一些创建和链接.

We have a server application that exposes a certain model, and set of services built on that model, to a particular client UI through a number of protocols. This is the kind of server application where, once it's set-up, there's not much manual intervention required. However, once in a while (particularly when the solution is first deployed), there will have to be some creation and linking of certain model objects.

此解决方案是在Spring,Spring MVC和Hibernate(以及其他事物)上构建的,其中使用了针对ORM的JPA批注.

This solution is built on Spring, Spring MVC and Hibernate (amongst other things) using JPA annotations for the ORM stuff.

我的问题:是否有人知道一个框架,该框架将允许我非常快速地(理想情况下是完全通过配置)设置Web界面来管理(CRUD)实体? 不需要一定要花哨的,并且不需要都需要花哨的安全性(我可以在应用程序服务器内部处理安全性).但是,它将需要能够处理实体之间的复杂关系(集合映射,枚举等).

My question: does anyone know of a framework that will allow me to very quickly set-up (ideally purely through configuration) a web interface to manage (CRUD) entities? This doesn't have to be fancy, and doesn't need to have fancy security (I can handle security from within the application server). It would however need to be able to handle complex relations between entities (collection mappings, enums, etc.).

例如:应用程序具有一个实体User,该实体具有与之关联的典型Role实体(每个用户具有1个Role).现在,无需从头开始创建我们自己的Web层即可定义此方法的唯一方法是:

For example: the application has an entity User, which has the typical Role entity associated with it (each user has 1 Role). Right now, the only way to define this without creating our own web layer from scratch is:

  1. 创建SQL语句以导入新用户(及其角色)
  2. 具有某种使用Spring/Hibernate配置关联并保存新Role()和User()对象的脚本(例如,使用Ant)

很显然,如果服务器附带一个基本的Web界面(不需要自己开发)会更容易,以处理这些任务(创建,更新,删除...). /p>

Obviously it would be easier if we had a basic web interface (that we don't need to develop ourselves) that comes with the server to handle these kind of tasks (creating, updating, deleting, ...).

推荐答案

裸对象 OpenXava Spring Roo ,所有人都可以做您想要的.

Naked Objects, OpenXava and Spring Roo, all can do what you are looking for.

这篇关于Spring/Hibernate实体管理Web界面/UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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