在我的应用程序中添加自定义字段 [英] Adding custom fields in my application

查看:150
本文介绍了在我的应用程序中添加自定义字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SAAS产品,它是由Spring MVC和Hibernate构建的。通常SAAS产品允许用户定制产品,如向表中添加额外的字段。
因此,我想给予用户灵活性,在表中为自己创建自定义字段。
请提供所有可行的解决方案来实现它。
非常感谢您的帮助。

I have a SAAS product, which is build by Spring MVC and Hibernate. Generally SAAS products allow user's to customize the product like adding extra fields to the table.
So i want to give the flexibility to users, to create custom fields in the tables for themselves.
Please provide all the viable solutions to achieve it.
Thank you so much for your help.

推荐答案

您的需求最适合用于NoSQL数据库。

Your requirement is best suited use case for NoSQL databases (like MongoDB).

动态创建关系数据库表&在应用程序中根据用户请求创建列(修改模式)不是最佳做法,因为这些操作涉及 DDL 操作,这是非常强大的,如果您不小心处理它们,整个应用程序的数据库到不一致的状态。

Dynamically creating relational database tables & columns (modifying schemas) upon user requests in an application is not a best practice as these involve DDL operations, which are very powerful and in case if you don't handle them carefully, the whole application's database goes to the inconsistent state.

这篇关于在我的应用程序中添加自定义字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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