简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM