我可以只使用一个表来进行所有的hibernate envers审计吗? [英] Can i use only one table for all hibernate envers auditing?
问题描述
我最近发现了美丽的图书馆,被称为hibernate envers,它是一个伟大和容易的方式有审计日志,它解决了我的最大的问题,当工作在一个播放网络应用程序。
现在,我知道Envers为每个被审计的实体使用一个表,并想知道是否可能有一个表为每个事情? (使用VARCHAR把所有的数据,例如,把实体模型在一个单独的列中)
i recently found the beautiful library that is called "hibernate envers", it's such a great and easy way to have an audit log, it solved one of my biggest problem while working on a play web-application. Now, i know that Envers use one table for each audited entity, and want to know if it is possible to have one table for every thing? (using a varchar to put all the data for example and put the entity model in a separate column)
先谢谢了。
推荐答案
不,这是不可能的。只有表每实体策略可目前(违约和ValidityAuditStrategy)
No, that is not possible. Only table-per-entity strategies are available currently (Default and ValidityAuditStrategy).
请参阅本手册:的 http://docs.jboss.org/hibernate/core/4.1/devguide/en-US/html/ch15。 html
这篇关于我可以只使用一个表来进行所有的hibernate envers审计吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!