Audit ManyToMany Relationships using Hibernate Envers

夙愿已清 提交于 2019-12-04 10:35:47

Auditing many-to-many relations should work without any additional configuration, provided that both sides of the relation are audited.

As to @AuditJoinTable, the annotation is used to specify a custom table name of the join table. See:

http://docs.jboss.org/hibernate/orm/4.1/javadocs/org/hibernate/envers/AuditJoinTable.html

The default name is [Referencing entity name]_[Referenced entity name]_AUD. The annotation doesn't have to be used, if the default table name is fine.

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