Can i use only one table for all hibernate envers auditing?

南笙酒味 提交于 2019-12-10 13:06:43

问题


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)

Thanks in advance.


回答1:


No, that is not possible. Only table-per-entity strategies are available currently (Default and ValidityAuditStrategy).

See the manual: http://docs.jboss.org/hibernate/core/4.1/devguide/en-US/html/ch15.html



来源:https://stackoverflow.com/questions/15925012/can-i-use-only-one-table-for-all-hibernate-envers-auditing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!